Repository navigation
fix(app): stop new pages appearing at the bottom of the screen before jumping up - #322
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When you changed pages, the new page first showed up at the bottom of the screen and then jumped to the top. v3.8.0 made the old and new pages fade at the same time, but the old page still took up its space while fading, which pushed the new one down.
The outgoing page is now lifted out of the layout while it fades over the new one, so the new page sits in place from its first frame. The Settings tabs had the same problem and get the same fix. On phones, opening a section from the Settings list starts a fresh transition so the section hidden behind the list does not fade over the new one. Going back to the list keeps the open section's state, and unsaved Profile edits are not touched until you choose to discard them.
Proof: on the local dev server, the new page's first frame sat 3,739px down before the fix and at the top after it (home to pricing). Signed-in Playwright runs at 390px checked each Settings case against a control run of the earlier code. Typecheck, lint and the full frontend suite (1,327 tests) pass.