Skip to content

Web editor: hide the sidebar and drag to resize the columns - #285

Merged
ItsMeBrianD merged 1 commit into
mainfrom
claude/project-thread-emf9tj
Nov 17, 2026
Merged

ItsMeBrianD merged 1 commit into
mainfrom
claude/project-thread-emf9tj

Conversation

@ItsMeBrianD

Copy link
Copy Markdown
Contributor

Requested by Brian · project thread

What

  • Hide the sidebar: a button left of the file name in the editor header, or Ctrl/⌘+B. The sidebar is hidden rather than removed, so it keeps its tab and open folders.
  • Resize: drag handles between the sidebar and the editor, and between the editor and the preview. Arrow keys work on a focused handle (Shift for bigger steps, Home/End for the limits), and double-clicking resets. Dragging the sidebar under half its narrowest hides it, as in VS Code.
  • Remembered: open/closed, sidebar width and the editor's share are kept in localStorage (mms-layout). This is for every project, not per project, because it is about the screen rather than the pack.
  • Phones keep the stacked layout they had before.
  • site/guides/editors.md mentions it (and the MCP copy is synced).

Judgement calls

  • Limits: sidebar 160 to 480 px, editor share 15% to 85%, so neither the text nor the preview can disappear by accident.
  • Ctrl/⌘+B is taken over from the browser (Firefox's bookmarks sidebar) to match VS Code.
  • The 3D preview re-centering from the same request is being handled separately.

Testing

  • New Playwright test: drag both handles, hide with the button and with Ctrl/⌘+B, check everything after a reload, double-click reset, drag-to-hide.
  • Full web suite: 57 passed. npm run check: 0 errors, 0 warnings.

Generated by Claude Code

The button left of the file name, or Ctrl/Cmd+B, hides and shows the
sidebar. Handles between the sidebar, the editor and the preview drag to
resize them (arrow keys too, double-click resets); dragging the sidebar
under half its narrowest hides it, as in VS Code. The layout is kept in
localStorage (mms-layout) for every project, since it is about the
screen, not the pack. Phones keep the stacked layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AX3Tt1NJDWKABCW8Hd7Taq
@ItsMeBrianD ItsMeBrianD self-assigned this Nov 17, 2026
@coderabbitai

coderabbitai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 56 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1c9f5810-69d9-45af-a0c9-37940bf5a013
Commits

Reviewing files that changed from the base of the PR and between cb242d5 and 0a1f6ce.

Files selected for processing: 5

  • engine/mcp/docs/guides/editors.md
  • site/guides/editors.md
  • web/src/lib/layout.svelte.ts
  • web/src/routes/+page.svelte
  • web/tests/smoke.spec.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@ItsMeBrianD
ItsMeBrianD merged commit eecb13a into main Nov 17, 2026
9 of 10 checks passed
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.

2 participants