Repository navigation
fix: size worktree startup space from its interface fonts - #5036
Merged
Merged
Conversation
The named fonts introduced in #4859 use a 1.45 line height, while the pre-activation overview and path still reserved 1.5. Use the same named fonts and their native line-height unit for those reservations, preserving the final interface and keeping the following paragraph still during activation. Add a pre-activation catalogue state for visual comparison. Closes #4985
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.
Worktree activation shrank its overview and path because their pre-activation space still assumed a 1.5 line height after #4859 moved the text onto interface fonts using 1.45. Reserve those lines with the same named fonts and CSS
1lh, so future font changes carry their startup geometry with them. The original native-layout regression fails before this fix with a 1.28125px shift and passes afterward at 1600px and 720px.The visible change is confined to the pre-activation overview and open worktree path reservations. The activated collection has the same measured height on both revisions. A new
worktree-startupstills state holds the activation module until capture; open, closed, dark and phone worktree states were also captured and inspected.Validation: the native startup and worktree summary layout checks passed (4 cases and 12 subtests), interface-font and stills tooling checks passed, all 737 runtime tests passed, and Ruff checks passed. A base/candidate startup probe loaded the same 42 JavaScript requests and 3,453,669 JavaScript bytes through first state presentation; stylesheet code grew by 56 bytes.
Closes #4985 — automated triage
Pre-activation worktree: before and after
The authored evidence starts slightly higher, matching where activation already placed it.