diff --git a/src/components/graph/vueNodes/LGraphNode.vue b/src/components/graph/vueNodes/LGraphNode.vue index e37be696a..f07a386df 100644 --- a/src/components/graph/vueNodes/LGraphNode.vue +++ b/src/components/graph/vueNodes/LGraphNode.vue @@ -7,53 +7,58 @@ :class="[ 'lg-node absolute border-2 rounded', 'contain-layout contain-style contain-paint', - selected - ? 'border-blue-500 ring-2 ring-blue-300' - : 'border-gray-600', + selected ? 'border-blue-500 ring-2 ring-blue-300' : 'border-gray-600', executing ? 'animate-pulse' : '', - node.mode === 4 ? 'opacity-50' : '', // bypassed + nodeData.mode === 4 ? 'opacity-50' : '', // bypassed error ? 'border-red-500 bg-red-50' : '', isDragging ? 'will-change-transform' : '' ]" :style="{ - transform: `translate(${position?.x ?? node.pos[0]}px, ${position?.y ?? node.pos[1]}px)`, - width: size ? `${size.width}px` : `${node.size[0]}px`, - height: size && !node.flags?.collapsed ? `${size.height}px` : 'auto', - backgroundColor: node.bgcolor || '#353535' + transform: `translate(${position?.x ?? 0}px, ${position?.y ?? 0}px)`, + width: size ? `${size.width}px` : '200px', + height: size ? `${size.height}px` : 'auto', + backgroundColor: '#353535' }" @pointerdown="handlePointerDown" > - -
+ +
- - + + -
+
No widgets
@@ -68,9 +73,11 @@