feat(server/ui): mobile-friendly layout with a hamburger sidebar drawer - #76
Open
louisreingold wants to merge 1 commit into
Open
feat(server/ui): mobile-friendly layout with a hamburger sidebar drawer#76louisreingold wants to merge 1 commit into
louisreingold wants to merge 1 commit into
Conversation
On narrow screens (<=760px) the sidebar is now an off-canvas drawer over an always-full-screen main pane, replacing the old one-pane-at-a-time swap (which unmounted the session view — killing its live stream — every time you went back to the list). - Hamburger button in the session bar and empty pane opens the drawer; scrim tap, a new X in the sidebar header, or picking a session closes it. The session view stays mounted underneath, so SSE keeps flowing. - Drawer starts open on phone-sized viewports so first load shows the env/session list; inert on desktop (grid layout unchanged). - Modal z-index raised above the drawer so Settings/Health/New Env opened from it are usable. - 100dvh heights so the composer isn't hidden behind mobile browser chrome; 16px inputs on mobile to stop iOS focus-zoom; modals capped at 92dvh with internal scroll. - Generalized the mobile-only visibility class (.back -> .mobile-only). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
What
Makes the devbox server UI mobile-friendly by turning the sidebar into a hamburger drawer on narrow screens (≤760px).
Previously, mobile used a one-pane-at-a-time swap: selecting a session hid the sidebar entirely, and the only way back to the list was a back button that deselected the session — unmounting the session view and killing its live SSE stream every time.
How it works now
Details
100dvhheights (with100vhfallback) so the composer isn't hidden behind mobile browser chrome.92dvhwith internal scroll..back→.mobile-only).UI-only change (
ui/app.js+ui/style.css) — served fresh from disk, no server restart needed.node --checkpasses onapp.js.🤖 Generated with Claude Code