fix restore node size, and add feeback

This commit is contained in:
2026-04-04 00:57:42 -07:00
parent 7068da7ffa
commit b2ddd81286
4 changed files with 17 additions and 3 deletions

View File

@@ -42,6 +42,10 @@ export function hydrateWorkflowState(data: SerializedWorkflow | null | undefined
const nodes = sortNodesForParentOrder(loadedNodes.map((node) => {
const definition = mergeDefinition(node.data, defs);
const restoredStyle = { ...(node.style || {}) };
if (node.width && !restoredStyle.width) restoredStyle.width = node.width;
if (node.height && !restoredStyle.height) restoredStyle.height = node.height;
return {
...node,
type: node.type || 'custom',
@@ -49,7 +53,7 @@ export function hydrateWorkflowState(data: SerializedWorkflow | null | undefined
parentId: node.parentId,
extent: node.extent,
hidden: !!node.hidden,
style: node.style,
style: restoredStyle,
dragHandle: node.dragHandle || '.drag-handle',
data: {
...node.data,