8000 feat(ui): let the right sidebar widen and narrow to the room by aorumbayev · Pull Request #156 · kagan-sh/kagan · GitHub
[go: up one dir, main page]

Skip to content

feat(ui): let the right sidebar widen and narrow to the room - #156

Merged
aorumbayev merged 6 commits into
mainfrom
claude-code-6
Nov 14, 2026
Merged

aorumbayev merged 6 commits into
mainfrom
claude-code-6

Conversation

@aorumbayev
Copy link
Copy Markdown
Member

The right sidebar can now be dragged as wide as bb's side panel: it stops only where the center reaches its 480 px minimum, about 59% of a 1920 px window with the left sidebar open and 72% with it closed. The fixed 560 px cap is gone. main.right-width takes 240 to 3840.

A wide saved width no longer hides the right sidebar. When the window or an opened left sidebar leaves less room, the right sidebar is drawn at the room it has and keeps its saved width for when the room comes back. It hides only below 240 px of room.

  • The left sidebar is a fixed panel, so dragging the right one wide no longer squashes it to 200 px.
  • A right width the room set is not saved as the person's choice, so dragging the left sidebar beside a narrowed right one keeps the right's saved width.
  • gpui-kit is re-pinned to fix(resizable): a resize before the next paint uses sizes, not stale bounds gpui-kit#3 (52a9c4db). That fork change stops a resize just after a panel is added from reading the new panel as 0 px wide. Re-pin to the merged commit if that PR is squash-merged.
  • Decision 278; amends 48, 53 and 250. docs/behaviour.md and book/src/window.md are updated.

Tests (each fails on the code before the change):

  • the_right_sidebar_drags_wide_until_the_center_minimum
  • the_right_sidebar_shrinks_to_the_room_before_it_hides
  • dragging_the_left_beside_a_narrowed_right_keeps_the_right_width

Checked in an isolated offscreen app (1120 px window, saved right width 1300): left open gives left 256, center 480, right 336; left hidden gives center 480, right 592; left shown again gives 336 back, and the saved width stays 1300.

8000
The right sidebar had a fixed 560 px drag cap. It now grows until the center is 480 px wide, like bb's side panel: about 59% of a 1920 px window with the left sidebar open, 72% with it closed. main.right-width now takes 240 to 3840 (decision 272).
A wide saved right width used to hide the whole right sidebar when the left one opened or the window shrank. It is now drawn at the room left, down to its 240 px minimum, and keeps the saved width for when the room comes back. The left sidebar is a fixed panel, so dragging the right one wide no longer squashes it to 200 px. gpui-kit is re-pinned to kagan-sh/gpui-kit fix/resizable-ranges, which drops stale drawn widths when a panel is added or removed (decision 272).
Dragging the left sidebar beside a narrowed right one saved the narrowed width, so the right came back narrower when the room returned.
@aorumbayev
aorumbayev merged commit bd6baf2 into main Nov 14, 2026
20 checks passed
@aorumbayev
aorumbayev deleted the claude-code-6 branch November 14, 2026 00:39
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.

1 participant

0