Repository navigation
fix(desktop): Mac window buttons stay centred in the header at every zoom - #2491
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🔍 Devin Review: 3 flags
Not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Why
On the Mac, zooming ADE in or out (Cmd +/-) resizes the header, but the window's close/minimize/zoom buttons stayed pinned where they were. At 70% they hung below the header into the banner. At 150% they sat at the top of a much taller header, out of line with the logo and tabs.
What changed
The three buttons now move with zoom, so they stay centred in the header at every level from 70% to 150%. macOS draws them at a fixed size and nothing can scale them, so only their position changes. The gap between the buttons and the logo was already kept constant across zoom levels and is unchanged.
At 100% the buttons sit 1 point higher than before: the old spot was about 1.4 points below the header's centre.
Windows and Linux are unchanged. On Windows the same zoom message already resized the title-bar strip; macOS now reuses that message to move the buttons.
proof-2.mp4
Evidence
npm --prefix apps/desktop run typecheckandlint:ci: pass, noade-uiwarnings in touched files./quality: 3 Low maintainability findings, all fixed; no correctness findings; gate empty./test: removedwindowAppearance.test.ts, which only pinned pixel sizes, colours and constants; no new test, since window-button placement isn't a critical path. Docs updated (ARCHITECTURE.md, the Windows port doc).Not checked
Authored with Claude Opus 5.5 via Claude Code.


Confidence Score: 5/5
The PR appears safe to merge; no new actionable issues were found.Summary
macOS window buttons now follow renderer zoom and stay centred in the header. Windows keeps its existing behavior.
Reviews (2) · Last reviewed commit: "test: drop window chrome pixel pins; doc..." · Reviewed by Greptile
Summary by CodeRabbit