Skip to content

fix: remove macOS traffic light padding on Windows - #317

Merged
AmethystLiang merged 1 commit into
stablyai:mainfrom
ruangustavo:fix/windows-titlebar-padding
Apr 6, 2026
Merged

AmethystLiang merged 1 commit into
stablyai:mainfrom
ruangustavo:fix/windows-titlebar-padding

Conversation

@ruangustavo

@ruangustavo ruangustavo commented Apr 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • The titlebar-traffic-light-pad div always rendered with 80px width to reserve space for macOS traffic lights (close, minimize, maximize), even on Windows where those buttons don't exist
  • This caused the "Orca" title and sidebar toggle/collapse buttons to be offset to the right unnecessarily on Windows
  • Conditionally render the padding only on macOS, using the same navigator.userAgent.includes('Mac') pattern used elsewhere in the renderer

Test plan

  • Run on Windows: verify the title and buttons are flush left with no phantom gap
  • Run on macOS: verify traffic light padding is still present and buttons don't overlap

Fixes #236

The titlebar-traffic-light-pad div always rendered with 80px width to
reserve space for macOS traffic lights, even on Windows where those
buttons don't exist. This caused the Orca title and collapse/expand
button to be offset to the right unnecessarily.

Only render the padding on macOS using the same navigator.userAgent
check pattern used elsewhere in the renderer.
@AmethystLiang
AmethystLiang merged commit a4ac7db into stablyai:main Apr 6, 2026
1 check passed
@AmethystLiang

Copy link
Copy Markdown
Contributor

Thx for the fix. Doing a release now

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.

Left sidebar toggle and Orca title has alignment gap

2 participants