Repository navigation
fix(sidebar): keep every icon in place when toggling the rail - #2062
Merged
Merged
Conversation
Rows, section headers and the update notice now take the same space in full width and in the rail, so no icon moves at any text size. Full-width rows had a fixed 24px minimum height that the rail zeroed. Headers vanished from the rail, which also expanded collapsed sections, so the rail now keeps each header's row with only its chevron and honors the collapsed state. The update notice keeps its height and moves its icon into the row icon column. Rows with a local path also pinned a size request at build time that outlived later text-size changes, which misaligned them in full width. Fixes #2061
This was referenced Nov 5, 2026
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.
Description
Toggling the sidebar between full width and the rail moved its icons, and rows could end up misaligned after a text-size change. Each part of the sidebar now takes the same space in both modes:
min-height: 24pxthat only full-width rows had, so height comes from the theme-sized icon box. At text sizes below 13, full-width rows get slightly tighter.Section chevrons and eject buttons still can't hold their full-width position, because they sit past the rail's right edge. The chevron recentres in the rail and device actions hide.
Not verified: QA can't produce 1.6 fractional scaling or a mounted device with an eject button, so those need a manual check on a real session. The update notice was checked with a temporary local change that forced it visible, which is not in this diff. Per the test policy, icon positions are not asserted in tests. They were measured by hand in the QA session, at text sizes 8 to 32, with and without frame density, and with Pinned collapsed.
Visual evidence
N/A: agents cannot upload attachments. See the description for the changes.
How to test
Expected result: no row icon moves in steps 2 and 3, Pinned stays collapsed in the rail until its chevron is clicked, and in step 4 all rows share one icon column and label column.
Related issue
Closes #2061