fix(studio): responsive sidebar — collapse to top nav on mobile#1022
Merged
fix(studio): responsive sidebar — collapse to top nav on mobile#1022
Conversation
On viewports ≥768px the sidebar renders as before (fixed left panel). Below 768px the sidebar is hidden and a mobile top bar with a hamburger toggles it as a slide-in overlay with a backdrop. - SidebarShell: shared <aside> wrapper handling fixed/overlay positioning - SidebarProvider + useSidebarContext: lightweight context for open state - Layout: wraps app in SidebarProvider, adds hidden-md mobile top bar - Auto-closes on navigation (useLocation effect in SidebarShell) Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Deploying agentv with
|
| Latest commit: |
d3329eb
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://6b3342bc.agentv.pages.dev |
| Branch Preview URL: | https://fix-996-responsive-sidebar.agentv.pages.dev |
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.
Closes #996
Summary
md+(≥768px): sidebar renders exactly as before — no visual change on desktop.<md(<768px): sidebar is hidden; a mobile top bar with a hamburger (☰) toggles it as a slide-in overlay with a dark backdrop.SidebarShell).Changes
sidebar-context.tsx(new):SidebarProvideranduseSidebarContextfor lightweight open/close stateLayout.tsx: wraps app inSidebarProvider; addsmd:hiddenmobile top bar with hamburgerSidebar.tsx: replaces all six<aside>variants with a sharedSidebarShellthat handles fixed overlay (mobile) vs static (desktop) layoutRed / Green UAT (390×844 viewport)
Red (before — main): Sidebar occupies ~65% of the 390px screen. Main content ("Evaluati...", "Experime...") is cut off and unreadable.
Green (after — worktree, sidebar closed): Sidebar hidden, full-width main content with hamburger in top-left corner.
Green (after — worktree, sidebar open): Sidebar slides in as an overlay on top of blurred content; tap backdrop to close.