Skip to content

fix: reserve left space for macOS traffic lights in ToolbarMode floating window#1125

Merged
GCWing merged 1 commit into
GCWing:mainfrom
nonoqing:yuyiqing/dev
Jun 9, 2026
Merged

fix: reserve left space for macOS traffic lights in ToolbarMode floating window#1125
GCWing merged 1 commit into
GCWing:mainfrom
nonoqing:yuyiqing/dev

Conversation

@nonoqing

@nonoqing nonoqing commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

On macOS with overlay titlebar, the traffic light buttons (close/minimize/maximize) are positioned at x=12-66 in the top-left corner. The ToolbarMode floating window's header has a '+' new-session button at x=12, which overlaps with the traffic lights.

Fix

  • Add isMacOSDesktopRuntime() detection to ToolbarMode component, applying bitfun-toolbar-mode--macos class
  • On macOS, increase __header left padding from 12px to 78px, pushing the '+' button past the traffic light zone

Changes

  • .gitignore — ignore eval artifacts (.eval/, Cross.toml)
  • ToolbarMode.tsx — add macOS platform detection
  • ToolbarMode.scss — add macOS-specific header padding

@GCWing GCWing merged commit 7e69cc5 into GCWing:main Jun 9, 2026
4 checks passed
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.

2 participants