Repository navigation
fix(frontend): remove macOS traffic-light inset during native fullscreen - #1268
Conversation
Remove 96px left inset in .flo-title-bar__safe-area when in native fullscreen on macOS, falling back to standard safe area padding. Restore 96px inset immediately upon exiting fullscreen, while preserving 96px in windowed/maximized macOS windows and leaving Windows/Linux geometry unchanged.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@greptileai review this at apex |
[Low impact] The PR appears safe to merge; no actionable issues were found.
|
Fixes #1153
Intent
Resolve FreeOpenSourcePOS/FloCafe GitHub issue #1153 (
fix(macOS): remove traffic-light inset during native fullscreen). Remove the 96px left traffic-light inset in.flo-title-bar__safe-areaonly while the macOS Electron window is in native macOS fullscreen (isFullScreen === true), restore the 96px inset immediately on exiting fullscreen (isFullScreen === false), keep the 96px inset in normal and maximized macOS windows, and leave Windows and Linux title-bar geometry unchanged. Follow the Ponytail minimal-diff approach by reusing the existing Electron window-state IPC (getWindowState/onWindowStateChanged). Verify with Playwright E2E tests and real screenshot evidence, run through/no-mistakesto open the PR linked to#1153(Fixes #1153), and do not merge the PR.What Changed
globals.csswith:not([data-flo-window-fullscreen='true']), removing the inset in native fullscreen while retaining it in windowed and maximized modes.useDesktopTitleBarSynchook inTitleBar.tsxandDesktopDragSurface.tsxthat listens to Electron window state (getWindowStateandonWindowStateChanged) and reflects fullscreen status ondocument.documentElement.dataset.floWindowFullscreen.title-bar-platform.spec.tscovering fullscreen transitions, restoration on exit, and platform invariance on Windows and Linux.Risk Assessment
✅ Low: The changes are well-bounded, minimal, and correctly gate the macOS title-bar traffic-light inset on native fullscreen state without impacting other platforms or window states.
Testing
Drove 5 live scenarios against the real macOS Electron desktop app and Playwright browser harness; verified that entering macOS native fullscreen removes the 96px left inset to standard 12px padding, exiting fullscreen restores the 96px inset immediately, normal and maximized windows retain 96px, and Windows/Linux title bar geometry remains unaffected at 12px padding. Visual screenshot artifacts captured in the evidence directory.
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
cd frontend && npx playwright test e2e/title-bar-platform.spec.ts --project=chromiumcd frontend && FLO_E2E_SHOW_WINDOW=1 FLO_E2E_EVIDENCE_DIR=~/.no-mistakes/evidence/01M5FR1695BNPVDMHDW00XD3FJ npx playwright test --config=playwright.electron.config.ts e2e/desktop/title-bar.electron.spec.tscd frontend && FLO_E2E_SHOW_WINDOW=1 npx playwright test --config=playwright.electron.config.ts e2e/desktop/verify-fullscreen-live.electron.spec.ts✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.