Repository navigation
fix(web): collapsed sidebar no longer cuts through the mac window controls - #240
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
This branch was previously deployed
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.
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.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.