Repository navigation
fix: titlebar alignment in fullscreen and on windows - #277
Merged
nwparker merged 6 commits intoApr 6, 2026
Merged
Conversation
AmethystLiang
self-requested a review
April 4, 2026 04:08
AmethystLiang
approved these changes
Apr 4, 2026
AmethystLiang
left a comment
Contributor
There was a problem hiding this comment.
LGTM! I added the missing getIsFullScreen() invoke to hydrate the initial fullscreen state as mentioned in the PR description, and disabled the max-lines lint rule for src/preload/index.ts to make it pass. The styling changes are correct and gracefully handle the Windows padding.
Contributor
|
Maybe this PR #317 provided part of the fix? |
Contributor
Author
9 tasks done
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
On Windows and fullscreen Mac, the sidebar toggle and text in titlebar were not aligned due to the traffic light position. #236
Screenshots
Before:

After (Mac):

After (Windows):

Testing
pnpm lintpnpm typecheckpnpm testpnpm buildAI Review Report
Reviewed behavior on Mac/Linux/Windows, React patterns, and IPC correctness. Fullscreen state comes from the native window (not derived from other state), so the useEffect subscription is appropriate. Titlebar trafficlight padding is only required on Mac. Linux/Windows uses pl-2 (I adjusted from pl-3 for symmetry and alignment). Initial state hydrated via getIsFullScreen() invoke to avoid missing early send. No shortcut, path, or shell changes.
Security Audit
IPC: window:fullscreen-changed only pushes booleans; window:is-full-screen only returns a boolean from BrowserWindow.isFullScreen(). No user-controlled input, no exec, no path concatenation, no elevated privileges.
Preload: Same channel names; no new invoke surface that accepts arbitrary payloads.
Secrets / auth: None touched.
Dependencies: No new packages.
Follow-up: None for security; optional hardening is only “ensure handler removed/re-registered if you ever add multiple main windows” (already handled via removeHandler + handle on attach).