Skip to content

fix(linux): match mac shell chrome (framed board + titlebar cluster)#3129

Merged
Annieeeee11 merged 3 commits into
mainfrom
fix/linux-shell-chrome-match-mac
Jul 26, 2026
Merged

fix(linux): match mac shell chrome (framed board + titlebar cluster)#3129
Annieeeee11 merged 3 commits into
mainfrom
fix/linux-shell-chrome-match-mac

Conversation

@codebanditssss

@codebanditssss codebanditssss commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

linux had its own □ ← → Board shell topbar while mac frames the board and keeps the sidebar toggle + history arrows in a fixed titlebar cluster. this makes linux use the mac path so the two look the same.

what changed

  • hidesShellTopbar() now covers linux → board/session actions and the Board crumb mount in-panel (framed), not in a separate shell topbar
  • TitlebarNav renders on linux too, pinned at the sidebar's top-left (no traffic lights to offset past)
  • the sidebar reserves the same titlebar band on linux (underTopbar)
  • dropped the inline linux-only sidebar toggle — the fixed cluster replaces it. this also fixes the collapse-vanish bug: the cluster is fixed, so an off-canvas collapse always leaves a way to expand again

windows is untouched.

supersedes #3124

that PR fixed the collapse-vanish by switching linux to an icon rail. this takes the fuller "match mac" route the vanish fix falls out of, so #3124 can close if this lands.

verification

  • tsc --noEmit clean, full renderer suite green (754 tests); updated platform.test.ts for the new linux expectations
  • needs a visual pass on linux: i can't render the linux electron build here, so the cluster's exact position (top-1.5 left-1.5) and the reserved band are matched to the mac path but eyeballed. easy to nudge if the spacing is off.
image image

linux rendered a separate `□ ← → Board` shell topbar while mac framed the
board and put the sidebar toggle + history arrows in a fixed titlebar
cluster. unify linux onto the mac path:

- hidesShellTopbar() now covers linux, so the board/session actions and the
  Board crumb mount in-panel (framed) instead of in a shell topbar
- TitlebarNav renders on linux too, pinned at the sidebar's top-left (no
  traffic lights to offset past)
- the sidebar reserves the same titlebar band (underTopbar) on linux
- drop the inline linux-only sidebar toggle — the fixed cluster replaces it,
  which also fixes the collapse-vanish bug (the fixed cluster survives an
  off-canvas collapse, so there's always a way to expand)

windows is unchanged. supersedes #3124.
the sidebar reserved a titlebar band on linux but the center panel still
used the default (non-mac) insets, so the board/session title sat at the
wrong height and the fixed cluster crowded the panel's top-left corner.

apply the mac center-panel alignment on linux too (near-flush inset +
36px title bar level with the cluster). linux has no traffic lights, so the
sidebar-closed title clears the cluster from its own left edge via a linux
content-offset token instead of the macOS 79px offset.
the linux cluster sat at top-1.5 (6px), centering its 36px box at y24 while
the framed board titlebar centers at y21 (mac inset 2px + surface border 1px)
— so the toggle/arrows read as misaligned against the project title. drop to
top-0.75 (3px) so both share the same centerline.

measured with a throwaway playwright pass under a linux UA: cluster and title
now both center at y21.
@Annieeeee11

Copy link
Copy Markdown
Collaborator

please add screenshots

@codebanditssss

Copy link
Copy Markdown
Collaborator Author

please add screenshots

done

@Annieeeee11 Annieeeee11 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Annieeeee11
Annieeeee11 merged commit 28c8fa2 into main Jul 26, 2026
3 checks passed
@codebanditssss
codebanditssss deleted the fix/linux-shell-chrome-match-mac branch July 26, 2026 14:19
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.

3 participants