Skip to content

fix(studio): responsive sidebar — collapse to top nav on mobile#1022

Merged
christso merged 2 commits intomainfrom
fix/996-responsive-sidebar
Apr 9, 2026
Merged

fix(studio): responsive sidebar — collapse to top nav on mobile#1022
christso merged 2 commits intomainfrom
fix/996-responsive-sidebar

Conversation

@christso
Copy link
Copy Markdown
Collaborator

@christso christso commented Apr 9, 2026

Closes #996

Summary

  • On md+ (≥768px): sidebar renders exactly as before — no visual change on desktop.
  • On <md (<768px): sidebar is hidden; a mobile top bar with a hamburger (☰) toggles it as a slide-in overlay with a dark backdrop.
  • Auto-closes on navigation (route change effect in SidebarShell).

Changes

  • sidebar-context.tsx (new): SidebarProvider and useSidebarContext for lightweight open/close state
  • Layout.tsx: wraps app in SidebarProvider; adds md:hidden mobile top bar with hamburger
  • Sidebar.tsx: replaces all six <aside> variants with a shared SidebarShell that handles fixed overlay (mobile) vs static (desktop) layout

Red / 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.

christso and others added 2 commits April 9, 2026 08:54
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>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying agentv with  Cloudflare Pages  Cloudflare Pages

Latest commit: d3329eb
Status: ✅  Deploy successful!
Preview URL: https://6b3342bc.agentv.pages.dev
Branch Preview URL: https://fix-996-responsive-sidebar.agentv.pages.dev

View logs

@christso christso merged commit 4d2c707 into main Apr 9, 2026
4 checks passed
@christso christso deleted the fix/996-responsive-sidebar branch April 9, 2026 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(studio): responsive sidebar — collapse to top nav on mobile

1 participant