mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-05 08:02:18 +00:00
fix: clamp flow graph height between minHeight and maxHeight
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.5
parent
62b57ae4a2
commit
154ffe59bb
@@ -529,7 +529,7 @@
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="z-10 flex-auto grow bg-surface-secondary" bind:clientHeight={minHeight}>
|
||||
<div class="z-10 flex-auto grow min-h-0 bg-surface-secondary" bind:clientHeight={minHeight}>
|
||||
<FlowGraphV2
|
||||
bind:this={graph}
|
||||
earlyStop={flowStore.val.value?.skip_expr !== undefined}
|
||||
|
||||
@@ -673,7 +673,8 @@
|
||||
} else {
|
||||
const minY = Math.min(...nodes.map((n) => 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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user