From 154ffe59bbe07941e6bff24763298db0340fc9b7 Mon Sep 17 00:00:00 2001 From: Guilhem Lemouel Date: Wed, 25 Mar 2026 17:07:06 +0100 Subject: [PATCH] fix: clamp flow graph height between minHeight and maxHeight Co-Authored-By: Claude Opus 4.5 --- .../src/lib/components/flows/map/FlowModuleSchemaMap.svelte | 2 +- frontend/src/lib/components/graph/FlowGraphV2.svelte | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/flows/map/FlowModuleSchemaMap.svelte b/frontend/src/lib/components/flows/map/FlowModuleSchemaMap.svelte index 50414cf835..69997dac88 100644 --- a/frontend/src/lib/components/flows/map/FlowModuleSchemaMap.svelte +++ b/frontend/src/lib/components/flows/map/FlowModuleSchemaMap.svelte @@ -529,7 +529,7 @@ /> -
+
n.position.y)) const maxBottom = Math.max(...nodes.map((n) => n.position.y + NODE.height + 100)) - height = Math.max(maxBottom - minY, minHeight) + const computed = maxBottom - minY + height = Math.max(Math.min(computed, maxHeight ?? computed), minHeight) } }