fix(web): clear iOS status bar for sidebar toggle in standalone PWA mode - #14
Merged
Merged
Conversation
Installed PWA (standalone display mode) owns the full screen down to the device status bar, unlike a normal Safari tab where the browser chrome already provides the top inset. Adds a display-mode: standalone override for --workspace-controls-top using env(safe-area-inset-top), mirroring the existing .wco (Electron titlebar) override pattern. Fixes #7
This was referenced Aug 9, 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
@media (display-mode: standalone)override for--workspace-controls-topusingenv(safe-area-inset-top), so the sidebar toggle clears the iOS status bar when the PWA is launched from the home screen..wco(Electron titlebar) override already inapps/web/src/index.css.Why
Confirmed on a real iPhone during #6's on-device verification: in standalone mode there's no browser chrome to provide the top inset that a normal Safari tab gets for free, so the toggle sat flush under the status bar and wasn't reliably clickable.
Test plan
vp fmt— clean, no changes neededtest-t3-appenvironment (Playwright, headless Chromium) that the media-scoped:rootcustom-property override correctly cascades and is consumed by the toggle'stop: var(--workspace-controls-top)— confirmed the toggle's computedtopshifts from0pxto the overridden value only when the media condition matches, and is unaffected otherwise (screenshots: toggle flush at top before, shifted down after).Emulation.setEmulatedMedia(and Playwright'semulateMedia) does not support forcingdisplay-mode: standalonedirectly, so the cascade/consumption mechanism was verified using an equivalent stand-in media feature (prefers-color-scheme) applying the identical selector/property pairing — isolating the actual code-path risk from browser-leveldisplay-modesupport, which is standard, broadly-supported CSS (Chrome 52+, iOS Safari 16.4+) already exercised by the sibling.wcorule in this file.Fixes #7
Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01PsVucKJsURnFjY2gbkH4wV