Skip to content

Fully autonomous AI Agents system capable of performing complex penetration testing tasks

refactor(resizable): fix panel minSize at 390px instead of a percentage

Sergey Kozyrenkobbdbdb86668b
diff --git a/frontend/src/components/shared/detail-split-layout.tsx b/frontend/src/components/shared/detail-split-layout.tsx
index 2b9de323..d9d5a022 100644
--- a/frontend/src/components/shared/detail-split-layout.tsx
+++ b/frontend/src/components/shared/detail-split-layout.tsx
@@ -22,7 +22,7 @@ export function DetailSplitLayout({
>
<ResizablePanel
defaultSize="45%"
- minSize="30%"
+ minSize={390}
>
<div className="bg-card h-full min-h-0 overflow-y-auto">
<Card className="mx-auto min-h-full w-full max-w-2xl rounded-none border-0">
@@ -33,7 +33,7 @@ export function DetailSplitLayout({
<ResizableHandle withHandle />
<ResizablePanel
defaultSize="55%"
- minSize="30%"
+ minSize={390}
>
<div className={contentClassName}>{content}</div>
</ResizablePanel>
diff --git a/frontend/src/pages/flows/flow.tsx b/frontend/src/pages/flows/flow.tsx
index 0cc51a5b..a0a3137b 100644
--- a/frontend/src/pages/flows/flow.tsx
+++ b/frontend/src/pages/flows/flow.tsx
@@ -385,7 +385,7 @@ function Flow() {
>
<ResizablePanel
defaultSize="50%"
- minSize="30%"
+ minSize={390}
>
<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">
@@ -398,7 +398,7 @@ function Flow() {
</ResizableHandle>
<ResizablePanel
defaultSize="50%"
- minSize="30%"
+ minSize={390}
>
{tabsCard}
</ResizablePanel>