Skip to content

Commit f332a8b

Browse files
[style] use early return pattern for collapsed check - addresses review feedback
Co-authored-by: DrJKL <[email protected]>
1 parent 9c3cc35 commit f332a8b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/renderer/extensions/vueNodes/components/LGraphNode.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,10 @@ onMounted(() => {
280280
const { startResize } = useNodeResize(
281281
(newSize, element) => {
282282
// Apply size directly to DOM element - ResizeObserver will pick this up
283-
if (!isCollapsed.value) {
284-
element.style.width = `${newSize.width}px`
285-
element.style.height = `${newSize.height}px`
286-
}
283+
if (isCollapsed.value) return
284+
285+
element.style.width = `${newSize.width}px`
286+
element.style.height = `${newSize.height}px`
287287
},
288288
{
289289
transformState

0 commit comments

Comments
 (0)