Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

Match image generator picker styling

Bittiebbee2e228f8
diff --git a/src/components/workspace/ImageEditor.tsx b/src/components/workspace/ImageEditor.tsx
index a9216c6..a23f603 100644
--- a/src/components/workspace/ImageEditor.tsx
+++ b/src/components/workspace/ImageEditor.tsx
@@ -540,16 +540,19 @@ export function ImageEditor({ config, folderPath, onChange: changeConfig, onGene
{/* The generator leads; canvas tools and view controls share the centered group. */}
<div className="image-tools__start">
{templateInspector && active && generateButton}
- <ComboBox
- className="image-generator"
- aria-label="Generator"
- data-tooltip="Generator"
- value={template?.id ?? ""}
- disabled={Boolean(active) || !imageTemplates.length}
- placeholder="No MiniMax H3 templates"
- options={imageTemplates.map((item) => ({ value: item.id, label: item.name, disabled: !templateUsable(item), description: !templateUsable(item) ? "Download in Settings" : undefined }))}
- onChange={(id) => { setTemplateId(id); localStorage.setItem("slopus.image-generator-template.v1", id); const next = imageTemplates.find((candidate) => candidate.id === id); if (next) commit({ ...scene, steps: next.defaultSteps }); }}
- />
+ <span className="generator-runtime image-generator">
+ <span className="generator-runtime__label" aria-hidden="true">Generator:</span>
+ <ComboBox
+ className="generator-template"
+ aria-label="Generator"
+ data-tooltip={template?.name ?? "Generator"}
+ value={template?.id ?? ""}
+ disabled={Boolean(active) || !imageTemplates.length}
+ placeholder="No MiniMax H3 templates"
+ options={imageTemplates.map((item) => ({ value: item.id, label: item.name, disabled: !templateUsable(item), description: !templateUsable(item) ? "Download in Settings" : undefined }))}
+ onChange={(id) => { setTemplateId(id); localStorage.setItem("slopus.image-generator-template.v1", id); const next = imageTemplates.find((candidate) => candidate.id === id); if (next) commit({ ...scene, steps: next.defaultSteps }); }}
+ />
+ </span>
</div>
<div className="image-tools__center">
{extendMode ? <span className="extend-tool-active"><Boxes16Filled aria-hidden="true" /> Zoom box</span> : <>
diff --git a/src/styles/image-editor.css b/src/styles/image-editor.css
index e05f9dd..7cae645 100644
--- a/src/styles/image-editor.css
+++ b/src/styles/image-editor.css
@@ -43,7 +43,7 @@
.image-generate-button { flex-shrink: 0; white-space: nowrap; }
.image-tools__start, .image-tools__center, .image-tools__end { min-width: 0; display: flex; align-items: center; gap: var(--space-1); }
.image-tools__end { justify-content: flex-end; }
-.image-generator { width: 160px; min-width: 0; flex-shrink: 1; }
+.image-generator { flex-shrink: 1; }
/* Editable: typed percentages up to "800%" plus the 32px drop-down button. */
.image-zoom { width: 112px; min-width: 112px; }
.image-tools__separator { width: 1px; height: 20px; margin: 0 var(--space-1); background: var(--line); }