From da917a2a506df0c00fc5ccc834edf49f2a22fefe Mon Sep 17 00:00:00 2001 From: space-nuko <24979496+space-nuko@users.noreply.github.com> Date: Wed, 24 May 2023 15:04:23 -0500 Subject: [PATCH] Switchable sidebars --- .../components/ComfyBoxWorkflowsView.svelte | 36 ++++---- src/lib/components/ComfyPaneView.svelte | 87 ++++++++++++++++--- src/lib/components/ComfyQueue.svelte | 3 +- src/lib/widgets/MultiRegionWidget.svelte | 2 +- 4 files changed, 95 insertions(+), 33 deletions(-) diff --git a/src/lib/components/ComfyBoxWorkflowsView.svelte b/src/lib/components/ComfyBoxWorkflowsView.svelte index 1e5f949..1a80588 100644 --- a/src/lib/components/ComfyBoxWorkflowsView.svelte +++ b/src/lib/components/ComfyBoxWorkflowsView.svelte @@ -98,27 +98,27 @@ } } - let propsSidebarSize = 0; + let leftSidebarSize = 0; - function toggleProps() { - if (propsSidebarSize == 0) { - propsSidebarSize = 15; + function toggleLeft() { + if (leftSidebarSize == 0) { + leftSidebarSize = 15; app.resizeCanvas(); } else { - propsSidebarSize = 0; + leftSidebarSize = 0; } } - let queueSidebarSize = 20; + let rightSidebarSize = 20; - function toggleQueue() { - if (queueSidebarSize == 0) { - queueSidebarSize = 20; + function toggleRight() { + if (rightSidebarSize == 0) { + rightSidebarSize = 20; app.resizeCanvas(); } else { - queueSidebarSize = 0; + rightSidebarSize = 0; } } @@ -186,8 +186,8 @@
- - + + @@ -199,8 +199,8 @@ - - + +
@@ -252,11 +252,11 @@ - - + {/each} +
{/if}
diff --git a/src/lib/components/ComfyQueue.svelte b/src/lib/components/ComfyQueue.svelte index 3999f9b..2cb91c0 100644 --- a/src/lib/components/ComfyQueue.svelte +++ b/src/lib/components/ComfyQueue.svelte @@ -354,10 +354,11 @@