Skip to content

fix(electron): keep collapsed header clear of macOS window buttons - #231

Merged
bbsngg merged 1 commit into
mainfrom
fix/macos-collapsed-header-inset
Sep 17, 2026
Merged

bbsngg merged 1 commit into
mainfrom
fix/macos-collapsed-header-inset

Conversation

@bbsngg

@bbsngg bbsngg commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

On macOS Electron, collapsing the sidebar leaves a 48px rail while the native hiddenInset window buttons remain at the top left. The main header previously began at x=64, allowing its title or session icon into that area. This follow-up to #190 reserves an 80px safe zone: add 32px of header padding beside the collapsed rail, or 80px when the mobile layout has no rail.

The header follows the existing sidebar preference. Expanded-sidebar spacing and Web/Windows layouts retain their existing padding. This PR changes only MainContentHeader; the other changes from #190 are already on main.

Validation:

  • User manually tested the macOS Electron fix and reported no issues.
  • Browser layout checks during development: macOS collapsed title x=80; expanded x=304. Simulated Windows/Web remained x=64 collapsed and x=304 expanded.
  • Rechecked on the current main-based branch: TypeScript checking, production build, desktop platform tests (2 passed), and git diff --check.

Related: #190.

@bbsngg
bbsngg merged commit d51b64e into main Sep 17, 2026
3 checks passed
@bbsngg
bbsngg deleted the fix/macos-collapsed-header-inset branch September 17, 2026 18:45
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