1}>
+ class:edit={$uiState.uiEditMode === "widgets" && zIndex > 1}>
- {#if container.attrs.showTitle}
+ {#if container.attrs.title !== ""}
@@ -68,7 +69,9 @@
on:finalize="{handleFinalize}"
>
{#each children.filter(item => item.id !== SHADOW_PLACEHOLDER_ITEM_ID) as item(item.id)}
+ {@const hidden = item?.node?.properties?.hidden}
{#if item[SHADOW_ITEM_MARKER_PROPERTY_NAME]}
@@ -96,6 +99,10 @@
min-width: 200px;
}
+ &:not(.edit) > .animation-wrapper.hidden {
+ display: none;
+ }
+
&.empty {
border-width: 3px;
border-color: var(--color-grey-400);
@@ -137,6 +144,25 @@
height: fit-content;
}
+ .edit > :global(.block) {
+ border-color: var(--color-pink-500);
+ border-width: 2px;
+ border-style: dashed !important;
+ margin: 0.2em;
+ padding: 1.4em;
+ }
+
+ :global(.hide-block > .block) {
+ padding: 0.5em 0.25em;
+ box-shadow: unset;
+ border-width: 0;
+ border-color: unset;
+ border-radius: unset;
+ background: var(--block-background-fill);
+ width: 100%;
+ line-height: var(--line-sm);
+ }
+
&.horizontal {
flex-wrap: wrap;
gap: var(--layout-gap);
@@ -176,14 +202,6 @@
padding: 0.2em;
}
- .animation-wrapper {
- position: relative;
-
- &:not(.edit) {
- flex-grow: 1;
- }
- }
-
.handle {
cursor: grab;
z-index: 99999;
@@ -194,6 +212,11 @@
height: 100%;
}
+ .animation-wrapper {
+ position: relative;
+ flex-grow: 1;
+ }
+
.handle-widget:hover {
background-color: #add8e680;
}
@@ -248,14 +271,6 @@
color: var(--input-placeholder-color);
}
- .container-edit-outline > :global(.block) {
- border-color: var(--color-pink-500);
- border-width: 2px;
- border-style: dashed !important;
- margin: 0.2em;
- padding: 1.4em;
- }
-
.widget-edit-outline {
border: 2px dashed var(--color-blue-400);
margin: 0.2em;
diff --git a/src/lib/components/ComfyProperties.svelte b/src/lib/components/ComfyProperties.svelte
index c430561..285f449 100644
--- a/src/lib/components/ComfyProperties.svelte
+++ b/src/lib/components/ComfyProperties.svelte
@@ -1,17 +1,20 @@