fix(flow): resizable panel sizes as % strings, not bare numbers

Same react-resizable-panels v4 pixels-not-percent pitfall as detail-split-layout
(a55cac3): flow.tsx's desktop two-panel split passed minSize={30}/defaultSize={50}
as numbers, so the 30 was a 30px floor — a user could drag either the central-tabs
panel or the detail panel down to a ~30px sliver instead of the intended 30%.

Use string percentages: minSize "30%", defaultSize "50%".

Verified live (chrome-devtools @1440px, dev server on a real flow): separator
aria-valuemin=30, dragging a panel to its minimum floors at 29.97% (355px).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Sergey Kozyrenko
2026-07-09 13:24:32 +07:00
co-authored by Claude Opus 4.8
parent a55cac3225
commit 2a3a553065
+4 -4
View File
@@ -384,8 +384,8 @@ function Flow() {
orientation="horizontal"
>
<ResizablePanel
defaultSize={50}
minSize={30}
defaultSize="50%"
minSize="30%"
>
<div className="flex h-[calc(100dvh-3rem)] max-w-full flex-col rounded-none border-0">
<div className="flex-1 overflow-auto py-4 pr-0 pl-4">
@@ -397,8 +397,8 @@ function Flow() {
<GripVertical className="size-4" />
</ResizableHandle>
<ResizablePanel
defaultSize={50}
minSize={30}
defaultSize="50%"
minSize="30%"
>
{tabsCard}
</ResizablePanel>