Skip to content

fix(desktop): space the title bar controls from the workspace tabs - #163

Merged
sanchitrk merged 1 commit into
canaryfrom
claude/titlebar-spacing
Nov 13, 2026
Merged

sanchitrk merged 1 commit into
canaryfrom
claude/titlebar-spacing

Conversation

@sanchitrk

@sanchitrk sanchitrk commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • With the sidebar closed on macOS, the title bar's controls were pinned to 11rem. That is exactly the traffic-light inset plus the three buttons, so their padding was squeezed out and the first workspace tab sat right against Forward (0px).
  • They now size to their content with pr-3 (12px), instead of the hand-tuned 11rem/7rem. interpolate-size: allow-keywords keeps the sidebar slide animating to and from that content width.
  • The new-workspace button gets ml-1, the same 4px gap as between tabs (was 0px).
Gap Before After
Forward → first tab (sidebar closed) 0px 12px
Last tab → + 0px 4px
First tab, sidebar open at the sidebar edge unchanged

Test plan

  • vp check and typecheck pass
  • Measured in the Electron app (Chromium 152): the gaps above, the open-state alignment, and the 200ms width transition in both directions

🤖 Generated with Claude Code


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

With the sidebar closed, the title bar's controls were pinned to a width
that left no room after Forward on macOS, so the first workspace tab sat
against it. They now size to their content plus padding, still animating
with the sidebar, and the new-workspace button keeps the tab gap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sanchitrk
sanchitrk merged commit 285b733 into canary Nov 13, 2026
1 check passed
@sanchitrk
sanchitrk deleted the claude/titlebar-spacing branch November 13, 2026 18:35
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