Skip to content

Add a lip of window frame around the macOS desktop content card - #5237

Merged
SawyerHood merged 1 commit into
mainfrom
bb/add-a-small-lip-to-the-macos-desktop-app-thr_8iuh4m3hwm
Oct 9, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
bb/add-a-small-lip-to-the-macos-desktop-app-thr_8iuh4m3hwm

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The framed macOS desktop layout drew its title bar across the top but ran the content card flush to the right and bottom window edges, so the card had one rounded corner and no frame around the rest of it.

What changed

  • apps/app/src/components/ui/sidebar.tsx: the framed wrapper now pads its right and bottom edges by a new --bb-window-frame-lip (4px), and the fixed sidebar panel subtracts it from its height. The sidebar card rounds its bottom-left corner, the main card rounds its top-right and bottom-right corners, and both gain the seam border on the newly exposed edges. With the sidebar collapsed, the main card rounds all four corners.
  • apps/app/src/app.css: --bb-window-frame-lip defaults to 0px, so unframed layouts (web, Windows, Linux, compact viewports) are unchanged.
  • apps/app/src/views/RootComposeView.tsx: the home screen's pinned right-panel toggle is offset by the lip so it keeps its distance from the card edge.

No wire, CLI, or plugin API changes.

How you verified

  • pnpm exec turbo run test --filter=@bb/app -- src/components/ui/sidebar.test.tsx src/components/layout src/lib/bb-desktop.test.ts src/components/ui/theme.test.ts (189 passed), including a new test for the lip padding, panel height, and card corners.
  • pnpm exec turbo run typecheck lint --filter=@bb/app and oxfmt --check on the changed files.
  • Rendered the dev app in headless Chromium with the macOS desktop shell stubbed, in light and dark themes, with the sidebar open and collapsed and the right panel open.

Not yet checked: a native Browser tab is a square view, so its bottom-right corner may show past the card's rounded corner.

🤖 Generated with Claude Code

AGENT GENERATED

The framed macOS layout ran the content card to the right and bottom
window edges. Inset it by 4px on both and round the remaining card
corners so the frame shows around it.

Co-Authored-By: Claude Code <[email protected]>
@SawyerHood
SawyerHood marked this pull request as ready for review October 9, 2026 02:17
@SawyerHood
SawyerHood merged commit 2511116 into main Oct 9, 2026
28 checks passed
@SawyerHood
SawyerHood deleted the bb/add-a-small-lip-to-the-macos-desktop-app-thr_8iuh4m3hwm branch October 9, 2026 02:17
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.

1 participant