From 267106bed4b9c4b5645f4113aceff2b2d36e82db Mon Sep 17 00:00:00 2001
From: space-nuko <24979496+space-nuko@users.noreply.github.com>
Date: Fri, 5 May 2023 06:11:05 -0500
Subject: [PATCH] UX improvements
---
src/lib/components/BlockContainer.svelte | 4 ++-
src/lib/components/ComfyProperties.svelte | 18 +++++++-----
src/lib/stores/layoutState.ts | 30 +++++++++++++------
src/lib/widgets/RangeWidget.svelte | 15 +++++++++-
src/scss/ux.scss | 36 +++++++++++++++--------
5 files changed, 71 insertions(+), 32 deletions(-)
diff --git a/src/lib/components/BlockContainer.svelte b/src/lib/components/BlockContainer.svelte
index 6329b59..14a0318 100644
--- a/src/lib/components/BlockContainer.svelte
+++ b/src/lib/components/BlockContainer.svelte
@@ -72,7 +72,9 @@
{@const hidden = item?.attrs?.hidden}
+ animate:flip={{duration:flipDurationMs}}
+ style={item?.attrs?.flexGrow ? `flex-grow: ${item.attrs.flexGrow}` : ""}
+ >
{#if item[SHADOW_ITEM_MARKER_PROPERTY_NAME]}
diff --git a/src/lib/components/ComfyProperties.svelte b/src/lib/components/ComfyProperties.svelte
index 6f874f2..82b7c03 100644
--- a/src/lib/components/ComfyProperties.svelte
+++ b/src/lib/components/ComfyProperties.svelte
@@ -103,13 +103,15 @@
{:else if spec.type === "number"}
{:else if spec.type === "enum"}