Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to stop the new tab button from jumping around the UI #685

Merged
merged 2 commits into from
Aug 12, 2022

Conversation

samsymons
Copy link
Collaborator

@samsymons samsymons commented Aug 11, 2022

Task/Issue URL: https://app.asana.com/0/1177771139624306/1202406971111777/f
Tech Design URL:
CC:

Description:

This PR updates the navigation bar to only use one new tab button, as the two button approach had a UI glitch when resizing the window when the tabs were at their maximum width.

Note: I haven't touched this code ever, and am not confident that something isn't broken here. I would appreciate some vigilant QA.

Steps to test this PR:

  1. Test tab-related operations and verify that the new tab button looks okay
  2. Resize the window and check that the new tab button doesn't jump around - try this in production to watch it jump, just create a few tabs then resize the window slowly and when it hits the maximum tab width threshold it jumps

Testing checklist:

  • Test with Release configuration
  • Test proper deallocation of tabs
  • Make sure committed submodule changes are desired

Internal references:

Software Engineering Expectations
Technical Design Template
When ready for review, remember to post the PR in MM

@tomasstrba tomasstrba self-requested a review August 12, 2022 05:04
@tomasstrba tomasstrba self-assigned this Aug 12, 2022
Copy link
Contributor

@tomasstrba tomasstrba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍 👏 👏 👏

@tomasstrba tomasstrba assigned samsymons and unassigned tomasstrba Aug 12, 2022
@samsymons samsymons merged commit 81c8d07 into develop Aug 12, 2022
@samsymons samsymons deleted the sam/update-tab-width-calculation branch August 12, 2022 19:55
samsymons added a commit that referenced this pull request Aug 15, 2022
* develop:
  Bookmarks phase 2 bug fixes (#686)
  Attempt to stop the new tab button from jumping around the UI (#685)
  Fix of threading issues related to history causing crashes  (#688)
  Add empty autofill isEnabled checks (to update BSK) (#683)
  Bump BSK to a version that uses updated GRDB (#647)
  Fix Save Credentials popover on macOS Ventura (#672)
  Update BSK to latest version + noop updates (#669)
  Update selectedTabViewModel only when it actually changes (#681)
  Update BSK to version 21.0.0 (#680)
  Always add the Autoconsent script (#666)
  Optimisation of history entry saving (#675)
samsymons added a commit that referenced this pull request Aug 17, 2022
* develop:
  Fire Button quick wins (#677)
  Bookmarks phase 2 bug fixes (#686)
  Set version to 0.28.3.
  Only clear the selection if the selection needs to change. (#689)
  Set version to 0.28.2.
  Update embedded files for 0.28.2.
  Attempt to stop the new tab button from jumping around the UI (#685)
  Fix of threading issues related to history causing crashes  (#688)
  Add empty autofill isEnabled checks (to update BSK) (#683)
  Bump BSK to a version that uses updated GRDB (#647)
  Fix Save Credentials popover on macOS Ventura (#672)
samsymons added a commit that referenced this pull request Aug 18, 2022
# By Sam Symons (14) and others
# Via GitHub (1) and others
* develop: (45 commits)
  Revert "Prevent the app from quitting while the Fire button is active" (#690)
  Disable link preview. (#691)
  Fire Button quick wins (#677)
  Bookmarks phase 2 bug fixes (#686)
  Set version to 0.28.3.
  Only clear the selection if the selection needs to change. (#689)
  Set version to 0.28.2.
  Update embedded files for 0.28.2.
  Attempt to stop the new tab button from jumping around the UI (#685)
  Fix of threading issues related to history causing crashes  (#688)
  Add empty autofill isEnabled checks (to update BSK) (#683)
  Bump BSK to a version that uses updated GRDB (#647)
  Fix Save Credentials popover on macOS Ventura (#672)
  Update BSK to latest version + noop updates (#669)
  Update selectedTabViewModel only when it actually changes (#681)
  Update BSK to version 21.0.0 (#680)
  Always add the Autoconsent script (#666)
  Optimisation of history entry saving (#675)
  Use localized compare to sort autofill items (#674)
  0.28.1
  ...

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants