feat(client): fullscreen toggle in bottom chrome strip - #169
Merged
Merged
Conversation
Hide browser chrome (phone/desktop) via the Fullscreen API: a new icon-only chrome button toggles document fullscreen with navigationUI: hide, tracks external exits through fullscreenchange, and no-ops where the API is unavailable. Sidesteps the PWA-install cert problem for LAN use until a trusted cert story lands.
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
Adds a fullscreen toggle button to the bottom chrome strip, allowing users to hide browser UI and maximize screen real estate on both phone and desktop.
Changes
useFullscreenhook (client/src/fullscreen.ts) that tracks document fullscreen state and exposes a toggle function. Syncs state viafullscreenchangeevents to handle external exits (system back gesture, Esc key). Gracefully degrades on browsers/jsdom without Fullscreen API support.Design notes
The fullscreen request must originate from a user gesture (tap/keydown) — the browser enforces this, so the hook only forwards the request. External exits automatically update UI state without additional wiring.