mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-08-26 04:56:36 +00:00
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:
co-authored by
Claude Opus 4.8
parent
a55cac3225
commit
2a3a553065
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user