Skip to content

feat(views): add left sidebar collapse option for desktop#1973

Open
forrestchang wants to merge 3 commits intomainfrom
agent/lambda/e6040ac7
Open

feat(views): add left sidebar collapse option for desktop#1973
forrestchang wants to merge 3 commits intomainfrom
agent/lambda/e6040ac7

Conversation

@forrestchang
Copy link
Copy Markdown
Collaborator

Summary

  • Show a sidebar toggle button (PanelLeft icon) in the page header when the sidebar is collapsed on desktop, so users can re-expand it
  • Add a toggle button to the sidebar footer for collapsing the sidebar from within
  • Add Cmd+B / Ctrl+B keyboard shortcut to toggle the sidebar (standard convention used by VS Code, Linear, etc.)

Closes #1967

Changes

  • packages/ui/components/ui/sidebar.tsx — Added keyboard shortcut handler in SidebarProvider
  • packages/views/layout/page-header.tsx — Made SidebarTrigger visible on desktop when sidebar is collapsed (was md:hidden)
  • packages/views/layout/app-sidebar.tsx — Added SidebarTrigger to sidebar footer next to help button

Test plan

  • Open the web app, verify the sidebar toggle button appears at bottom-left of the sidebar
  • Click the toggle button — sidebar should collapse (slide offscreen)
  • When collapsed, a toggle button should appear in the page header — click to re-expand
  • Press Cmd+B (Mac) / Ctrl+B (Windows/Linux) to toggle sidebar
  • On mobile, behavior should remain unchanged (hamburger menu)
  • Desktop app should continue working as before (it already had its own collapse trigger)

Show a sidebar toggle button in the page header when the sidebar is
collapsed on desktop, and add a toggle button to the sidebar footer
for collapsing. Also adds Cmd+B / Ctrl+B keyboard shortcut to toggle
the sidebar.

Closes #1967

Co-authored-by: multica-agent <github@multica.ai>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
multica-docs Ready Ready Preview, Comment May 1, 2026 7:33am

Request Review

Skip the sidebar toggle when focus is inside INPUT, TEXTAREA, SELECT,
or contentEditable elements so the shortcut does not steal Cmd+B (bold)
from TipTap editors.

Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
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.

[Feature]: Left Sidebar Collapse Option

1 participant