@@ -187,6 +209,9 @@
}
#bottombar {
+ display: flex;
+ flex-wrap: wrap;
+ gap: var(--layout-gap);
margin: 10px;
}
diff --git a/src/lib/components/ComfyApp.ts b/src/lib/components/ComfyApp.ts
index 3dbb880..d6298aa 100644
--- a/src/lib/components/ComfyApp.ts
+++ b/src/lib/components/ComfyApp.ts
@@ -30,6 +30,7 @@ export type SerializedPanes = {
}
export type SerializedAppState = {
+ createdBy: "ComfyBox",
version: number,
panes: SerializedPanes,
workflow: SerializedLGraph
diff --git a/src/lib/utils.ts b/src/lib/utils.ts
new file mode 100644
index 0000000..35c72e4
--- /dev/null
+++ b/src/lib/utils.ts
@@ -0,0 +1,13 @@
+export function download(filename: string, text: string, type: string = "text/plain") {
+ const blob = new Blob([text], { type: type });
+ const url = URL.createObjectURL(blob);
+ const a = document.createElement('a')
+ a.href = url
+ a.download = filename
+ document.body.appendChild(a)
+ a.click()
+ setTimeout(function() {
+ a.remove();
+ window.URL.revokeObjectURL(url);
+ }, 0);
+}
diff --git a/src/lib/widgets/ComboWidget.svelte b/src/lib/widgets/ComboWidget.svelte
index 26b5687..d75127c 100644
--- a/src/lib/widgets/ComboWidget.svelte
+++ b/src/lib/widgets/ComboWidget.svelte
@@ -1,23 +1,31 @@
{#if item}
-
+
{/if}
@@ -26,4 +34,8 @@
padding: 2px;
width: 100%;
}
+
+ :global(.svelte-select-list) {
+ z-index: var(--layer-5) !important;
+ }