Skip to content

fix(app): widen the side panel in wide mode (#2188) - #2190

Open
jacktrnr wants to merge 1 commit into
mainfrom
fix/2188-wide-panel
Open

jacktrnr wants to merge 1 commit into
mainfrom
fix/2188-wide-panel

Conversation

@jacktrnr

Copy link
Copy Markdown
Contributor

Closes #2188

Summary

In wide mode the work column widened, but the side panel <aside> kept its stored pixel width (around 330 px), so the Preview and other tabs stayed narrow and left empty space beside them.

  • session-side-panel.tsx: panelWidth returns "100%" while props.isWide?.() is true (after the closed 0px guard), so the panel fills the widened work column.
  • The aside's own ResizeHandle is hidden while wide. Dragging it only changed the stored width, which is ignored in wide mode, so the handle looked broken.
  • Outside wide mode nothing changes: the stored pixel width (floored by floorPanelColumnWidth) and the working handle stay as before.
  • Manifest refreshed; drift gate PASS.

Tests

  • New source-wiring tests in session-side-panel-structure.test.ts (the component can't render under happy-dom): wide gives 100%, outside wide the stored pixel width applies, and the handle's <Show> is gated on !props.isWide?.(). These failed first (RED), then passed.
  • session-side-panel-structure.test.ts + session-panel-width.test.ts: 20 pass, 0 fail.
  • src/pages/session/: 380 pass, 5 fail. The same 5 failures (rows-current.test.ts x4, amicode-session-relay.integration.test.ts x1) occur on origin/main without this change, so they are unrelated.
  • overlay_typecheck_gate.sh: clean across 7 packages.

Manual check

  1. Open a session on desktop with the side panel visible, and open a Preview (for example any .md file).
  2. Click Wide (or press Cmd/Ctrl+Shift+M). The Preview should fill the whole widened work column, with no resize handle on its left edge.
  3. Click Exit Wide. The panel should return to its previous width, and dragging the left-edge handle should resize it again.
  4. Repeat with Files Changed and the file tree tabs.

🤖 Generated with Claude Code

In wide mode the work column expanded but the <aside> kept its stored
pixel width, leaving empty space beside the Preview. panelWidth now
returns 100% while wide, and the aside's resize handle is hidden while
wide (its stored width is ignored there). Outside wide mode the stored
width and the handle are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 584b8f9d-e3cb-439c-b8ce-0faf8f0b082e
  • 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

@jacktrnr
jacktrnr marked this pull request as ready for review November 24, 2026 14:38
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.

Wide mode does not widen the Preview / side panel (aside keeps its fixed pixel width)

1 participant