diff --git a/package.json b/package.json index b4545f6..5dbcbd0 100644 --- a/package.json +++ b/package.json @@ -73,6 +73,7 @@ "klecks": "workspace:*", "pollen-css": "^4.6.2", "radix-icons-svelte": "^1.2.1", + "svelte-bootstrap-icons": "^2.3.1", "svelte-feather-icons": "^4.0.0", "svelte-preprocess": "^5.0.3", "svelte-select": "^5.5.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 50abc05..2d7d1f8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -97,6 +97,9 @@ importers: radix-icons-svelte: specifier: ^1.2.1 version: 1.2.1 + svelte-bootstrap-icons: + specifier: ^2.3.1 + version: 2.3.1 svelte-feather-icons: specifier: ^4.0.0 version: 4.0.0 @@ -7908,6 +7911,10 @@ packages: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} + /svelte-bootstrap-icons@2.3.1: + resolution: {integrity: sha512-Vqhgmcd55hEoB/MrPESvVYo4+m++2q9l00a5lzGkgbXTiO6go21PTU9DaeAJ446WBiEmg3Q8sv9QVOBmh5c1ww==} + dev: false + /svelte-check@2.2.6(postcss-load-config@3.1.4)(postcss@8.4.21)(svelte@3.58.0): resolution: {integrity: sha512-oJux/afbmcZO+N+ADXB88h6XANLie8Y2rh2qBlhgfkpr2c3t/q/T0w2JWrHqagaDL8zeNwO8a8RVFBkrRox8gg==} hasBin: true diff --git a/src/lib/components/ComfyApp.svelte b/src/lib/components/ComfyApp.svelte index 2d45fcb..869da0e 100644 --- a/src/lib/components/ComfyApp.svelte +++ b/src/lib/components/ComfyApp.svelte @@ -1,6 +1,6 @@ + + +
+
+
+ +
+
+
+
+ {#each allEntries as [entry, image], i} +
+ + handleClick(e, entry, i)} + src={image} + alt="thumbnail" /> +
+ {/each} +
+
+
+ + diff --git a/src/lib/components/ComfyQueueListDisplay.svelte b/src/lib/components/ComfyQueueListDisplay.svelte new file mode 100644 index 0000000..b575e14 --- /dev/null +++ b/src/lib/components/ComfyQueueListDisplay.svelte @@ -0,0 +1,162 @@ + + +
+ {#each entries as entry} +
showPrompt(entry, e)}> + {#if entry.images.length > 0} +
+ {#each entry.images.slice(0, 4) as image, i} +
+ + showLightbox(entry.images, i, e)} + src={image} + alt="thumbnail" /> +
+ {/each} +
+ {/if} +
+
+ {truncateString(entry.message, 20)} +
+
+ {entry.submessage} +
+
+
+
+ {#if entry.date != null} + + {entry.date} + + {/if} +
+ {/each} +
+ + diff --git a/src/lib/components/ComfyWorkflowsView.svelte b/src/lib/components/ComfyWorkflowsView.svelte index ef909d2..5e696d2 100644 --- a/src/lib/components/ComfyWorkflowsView.svelte +++ b/src/lib/components/ComfyWorkflowsView.svelte @@ -1,6 +1,6 @@ {#if widget && node && nodeValue && $nodeValue} @@ -148,7 +133,7 @@ on:clicked={onClicked} bind:imageWidth={$imageWidth} bind:imageHeight={$imageHeight} - bind:selected_image + bind:selected_image={$selected_image} /> diff --git a/src/scss/global.scss b/src/scss/global.scss index ed2d51c..e921673 100644 --- a/src/scss/global.scss +++ b/src/scss/global.scss @@ -108,6 +108,12 @@ hr { color: var(--panel-border-color); } +input { + color: var(--body-text-color); + background: var(--input-background-fill); + border: var(--input-border-width) solid var(--input-border-color) +} + input:not(input[type=radio]), textarea { border-radius: 0 !important; }