Repository navigation
Fix ⌘ shortcut hints overlapping header buttons - #5869
Merged
Merged
Conversation
The sidebar toggle, back/forward arrows, and right-panel toggle drew their held-modifier shortcut pills outside their own bounds. With the rail navigation, New thread and its own hint sit in that space, so the toggle's hint covered the New thread icon and the history hints stacked on top of New thread's hint. Icon-only buttons now follow the rail: no held-modifier pill, with the shortcut kept in the accessible label (and the tooltip for back/forward). Labeled controls keep their in-place pills. Co-Authored-By: Claude Opus 5.5 <[email protected]>
ymichael
force-pushed
the
fix/shortcut-hints-header-overlap
branch
from
October 20, 2026 17:16
b285c9f to
d7def42
Compare
The right-panel toggle's held-modifier hint now sits below the button, right-aligned, on every surface that draws the toggle (home, thread header, open panel, split workspace). That strip under the header is empty, so the pill neither covers a sibling button nor shifts the header actions. z-10 keeps it above the open panel's body. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Human comments
What was wrong
Holding ⌘ shows shortcut pills, and the icon-only chrome buttons drew theirs outside their own bounds: the sidebar toggle's pill was
absolute left-full, the back/forward pair wasabsolute right-fullof the arrows, and the right-panel toggle's pill wasabsolute right-full,absolute top-full, or an inline sibling depending on the surface. Each assumed the space beside it was empty. The rail navigation (#5584) puts New thread, with its own⇧⌘Opill, directly in that space, so⌘ \covered the New thread icon and⌘[ ⌘]stacked on top of⇧⌘O. In a thread, the inline⌘Jpushed the close and open-in-editor buttons sideways, and with the panel open the hide-panel⌘Jlanded on the maximize button.What changed
AppLayout.tsx: the sidebar toggle hint is removed from all three header layouts (framed, macOS desktop chrome, browser overlay).SidebarHistoryNavigationControls.tsx: the floating⌘[ ⌘]pair is deleted.⌘J): the hint is kept but moved under the button, right-aligned, on every surface:RootComposeView.tsx,ThreadDetailHeader.tsx,ThreadSecondaryPanel.tsx, andSplitWorkspaceSecondaryPanelHost.tsx(which already used this placement). One constant,RIGHT_PANEL_TOGGLE_SHORTCUT_HINT_CLASSinpanelToggleControlState.ts, holds the placement;z-10keeps it above the open panel's body.No wire, CLI, plugin API, or data changes.
How you verified
⌘ \with the New thread icon and⌘[ ⌘]with⇧⌘O; the branch shows only New thread's pill. Thread header: main's inline⌘Jshifts the close and open-in-editor buttons; the branch shows⌘Junder the toggle and the buttons stay put. Panel open: main's⌘Jlands on the maximize button; the branch shows it under the hide button, clear of maximize (withoutz-10the panel body painted over it).⇧⌘O,⌃1–⌃3,⇧⌘C,⇧⌘M,⌘O, and⌘Jon home, thread, and the open panel.aria-expandedboth ways; back/forward navigate between home and a thread; the back tooltip shows⌘ [; ⌘J opens the panel and the hide button closes it; labels readToggle sidebar (⌘ \)andHide right panel (⌘ J).pnpm exec turbo run typecheck lint --filter=@bb/apppasses.vitest run src/components src/viewsinapps/app: 4386 passed, 3 skipped. The test that asserted the floating back/forward pair appears while ⌘ is held is deleted with the behavior it covered.