Skip to content

feat: add ResizablePanels - #423

Open
andrewhuhh wants to merge 2 commits into
mainfrom
feat/resizable-panels
Open

andrewhuhh wants to merge 2 commits into
mainfrom
feat/resizable-panels

Conversation

@andrewhuhh

@andrewhuhh andrewhuhh commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Adds ResizablePanels, a two-panel split with a separator you can drag or move from the keyboard. Use it for a list beside its details (direction="horizontal") or an editor above its results (direction="vertical").

The start panel takes defaultSize percent of the container (50 by default), and minSizes sets the smallest share each panel can shrink to. Pass size and onSizeChange to control it. The separator is a focusable role="separator" with aria-orientation, aria-valuenow, aria-valuemin and aria-valuemax. Arrow keys move it in 5% steps, Home and End jump to the limits, and double-clicking it restores the default. Dragging uses pointer capture, so it keeps tracking when the pointer leaves the bar. The bar is a hairline that darkens on hover and while dragging, shows the standard focus ring, and uses the col-resize or row-resize cursor.

On narrow screens a side-by-side split stacks once its container is 40rem or narrower. The panels flow top to bottom at their natural height, a hairline separates them, and the separator is removed because there is nothing left to resize. A vertical split keeps resizing at every width.

The new Resizable panels page shows a list beside details, an editor over results, and empty and long-content states. It adds visual baselines for that page and doesn't change any existing ones.

screenshot 1

screenshot 2

screenshot 3

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@aws-amplify-gen-3

aws-amplify-gen-3 Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Name Status Preview Updated
cipher/preview (69883fc) ❌ Failed — 2026-12-04 00:25 UTC

Reason: OUTPUT_DIRECTORY_NOT_FOUND

@capy-ai capy-ai Bot added the visual-change label Dec 4, 2026

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found 4 potential issues (1 high, 3 medium).

Open in Capy

Comment thread src/ui/resizable-panels.tsx Resolved
Comment thread src/ui/resizable-panels.tsx Resolved
Comment thread src/ui/resizable-panels.module.css Resolved
Comment thread src/ui/resizable-panels.tsx Resolved
@greptile-apps

greptile-apps Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5RetriggerView in Greptile

[Low impact] The PR appears safe to merge; all four previous findings are fixed, and no new actionable issues were found.

Summary

Adds ResizablePanels with pointer and keyboard resizing, minimum sizes, controlled sizing, and narrow-screen stacking.

  • Resizable panels let people change how much space each side gets.

Reviews (2) · Last reviewed commit: "fix: clamp ResizablePanels size, support..." · Reviewed by Greptile

Comment thread src/ui/resizable-panels.tsx Resolved
Comment thread src/ui/resizable-panels.module.css Resolved
Comment thread src/ui/resizable-panels.tsx Resolved
Comment thread src/ui/resizable-panels.tsx Resolved
… track the dragging pointer

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

Open in Capy

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant