We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0c7b39 commit 7effd39Copy full SHA for 7effd39
1 file changed
src/lib/components/nodes/BaseNode.svelte
@@ -160,11 +160,12 @@
160
))
161
);
162
163
- // Height: base + pinned params, or more for horizontal orientation with many ports
+ // Height: total content height vs port requirements (they share vertical space)
164
+ const contentHeight = $derived(NODE.baseHeight + pinnedParamsHeight);
165
const nodeHeight = $derived(
166
isVertical
- ? snapTo2G(NODE.baseHeight + pinnedParamsHeight)
167
- : snapTo2G(Math.max(NODE.baseHeight, minPortDimension) + pinnedParamsHeight)
+ ? snapTo2G(contentHeight)
168
+ : snapTo2G(Math.max(contentHeight, minPortDimension))
169
170
171
// Check if this is a Subsystem or Interface node (using shapes utility)
0 commit comments