Skip to content

fix(web): collapsed sidebar no longer cuts through the mac window controls - #240

Merged
AadiJo merged 1 commit into
mainfrom
collapsed-titlebar
Nov 9, 2026
Merged

AadiJo merged 1 commit into
mainfrom
collapsed-titlebar

Conversation

@AadiJo

@AadiJo AadiJo commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

On macOS, with the sidebar collapsed to its icon rail, the top of the window above the rail couldn't drag the window, and the rail's right border ran straight through the traffic lights.

The rail is full height, and the sidebar header that carried its drag region hides while the sidebar is folded. A title-bar strip now covers the top of the rail whenever it's collapsed. It is a drag region in Electron and uses the chat header's background, so the rail and its border start below the title bar. The strip renders before the sidebar toggle in the DOM, because Electron on Windows builds drag regions in DOM order and the toggle's no-drag has to come after it.

In a headless browser, the strip measures exactly the rail's width by 52px, shows only in the collapsed state, and is removed when the sidebar expands. Dragging and the traffic lights only exist in the macOS app, which hasn't been tested yet.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@vercel

vercel Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cadsense Skipped Skipped Nov 9, 2026 5:53pm UTC

@AadiJo
AadiJo merged commit 6e203f0 into main Nov 9, 2026
8 checks passed
@AadiJo
AadiJo deleted the collapsed-titlebar branch November 26, 2026 19:49

This branch was previously deployed

1 inactive deployment
Preview — a4d1b505 Deployed Nov 9, 2026 by vercel[bot]
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