Skip to content

fix: size worktree startup space from its interface fonts - #5036

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4985
Nov 2, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-4985

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

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-startup stills 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.

Before activation on main

Before activation with the corrected reservations

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
@leaf-agent
leaf-agent merged commit d9ac004 into main Nov 2, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4985 branch November 2, 2026 00:29
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.

Native startup diff exhibit shrinks after widget activation

1 participant