From 9529182117b7a5b0fc0ebcc730c4eba85db89c76 Mon Sep 17 00:00:00 2001 From: Glary-Bot Date: Fri, 15 May 2026 21:28:19 +0000 Subject: [PATCH] fix: watch composite bottom-panel rendered condition incl. focusMode Address review: bottomPanelVisible alone misses the focusMode case (splitter hides the panel when focusMode is on, regardless of the store flag). Compose the same condition the splitter uses so toggling focusMode while the panel is open also triggers the redraw/resync. --- src/components/graph/GraphCanvas.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/graph/GraphCanvas.vue b/src/components/graph/GraphCanvas.vue index 6805fbc9cf..19aaddcd84 100644 --- a/src/components/graph/GraphCanvas.vue +++ b/src/components/graph/GraphCanvas.vue @@ -299,7 +299,14 @@ watch( ) const { bottomPanelVisible } = storeToRefs(useBottomPanelStore()) -watch(bottomPanelVisible, () => { +// Mirror the splitter's rendered condition: the bottom panel is hidden when +// focusMode is on, regardless of bottomPanelVisible (see +// LiteGraphCanvasSplitterOverlay.vue). Watching the composite means entering +// or leaving focus mode while the panel is open also triggers the redraw. +const bottomPanelRendered = computed( + () => bottomPanelVisible.value && !workspaceStore.focusMode +) +watch(bottomPanelRendered, () => { // The splitter resizes the canvas container, which triggers the canvas // ResizeObserver and (eventually) the per-node Vue ResizeObservers. Force a // slot/link redraw once the splitter has settled so links stay aligned with