Repository navigation
Conversation
The framed macOS window left a lip on the right and bottom of the card but none on the left when navigation used the list placement, so the sidebar card (and the content card when collapsed) touched the window's left edge. The collapsed title-bar reserve also assumed a rail, so page titles overlapped the sidebar toggle in Top list. Co-Authored-By: Claude Opus 5.5 <[email protected]>
ymichael
deleted the
bb/test-top-list-frame-lip-fix-pr-5584-follow-up-thr_v642es9ycy
branch
October 17, 2026 20:47
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
Follow-up to #5584 (reported in #5584 (comment): "when top list enabled, right and left edges are not equal"). In the framed macOS desktop window, the window frame left an 8px lip on the right and bottom of the card. With the Rail placement, the rail fills the left side. With the list placement (Top list) there is no rail, and the frame had no leading lip, so the sidebar card (and the content card when the sidebar is collapsed) sat flush against the window's left edge. The collapsed title-bar reserve also assumed a rail was present, so the page title overlapped the sidebar toggle in Top list.
What changed
apps/app/src/components/ui/sidebar.tsx,apps/app/src/app.css: with the list placement, the frame gains a leading lip (--bb-window-frame-leading-lip), so the sidebar card and the collapsed content card are inset 8px on the left, matching the right and bottom.SidebarProviderpublishes--bb-window-card-collapsed-left: the rail width for Rail, the leading lip for Top list.apps/app/src/lib/bb-desktop.ts:MACOS_TITLE_BAR_COLLAPSED_SIDEBAR_RESERVE_CLASSsubtracts--bb-window-card-collapsed-leftinstead of assuming a rail, so the title clears the toggle when the sidebar is collapsed in Top list.How you verified
apps/app/src/components/ui/sidebar.test.tsxfor the leading lip and the published collapsed-left offset under both placements.pnpm exec turbo run typecheck lint --filter=@bb/appand the sidebar/layout/secondary-panel tests pass.🤖 Generated with Claude Code