The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
MOSS-Image: Quality reads in full under Options
Adarshff53e4a300ef
diff --git a/src/components/studio/model-controls.tsx b/src/components/studio/model-controls.tsxindex e340a546..a6f74cc8 100644--- a/src/components/studio/model-controls.tsx+++ b/src/components/studio/model-controls.tsx@@ -40,7 +40,8 @@ export function ControlsChip({<p className="text-[12px] text-muted-foreground">Leave one on Auto and the model decides.</p><div className="grid grid-cols-2 gap-2">{controls.map((c) => (- <label key={c.param} className="space-y-1">+ // A control alone on its row (MOSS-Image's one Quality) takes both columns, so its value reads in full.+ <label key={c.param} className="space-y-1 odd:last:col-span-2"><span className="text-[12px] text-muted-foreground">{c.label}</span><Select value={values[c.param] === undefined ? "__auto" : String(values[c.param])} onValueChange={(v) => onChange(c.param, v === "__auto" ? undefined : typeof c.values[0] === "number" ? Number(v) : v)}><SelectTrigger size="sm" className="w-full" aria-label={c.label}>diff --git a/tests/e2e/moss-image.mjs b/tests/e2e/moss-image.mjsindex 137f5fb3..55e17a9c 100644--- a/tests/e2e/moss-image.mjs+++ b/tests/e2e/moss-image.mjs@@ -135,6 +135,16 @@ try {const qbox = await quality.boundingBox();check(`${tag} open: Quality fits the screen`, !!qbox && qbox.x >= 0 && qbox.x + qbox.width <= width + 1, qbox ? `${Math.round(qbox.x)}+${Math.round(qbox.width)}` : "no box");check(`${tag} open: Options shows Quality, Auto = Standard · 25 steps`, /Auto · Standard · 25 steps/.test(flat(await quality.innerText())), flat(await quality.innerText()));+ // The words read in full: the text is no wider than the box that shows it (it was cut at "Auto · Standard · 2").+ const cut = () =>+ quality.evaluate((b) => {+ const v = b.querySelector('[data-slot="select-value"]') ?? b;+ const r = document.createRange();+ r.selectNodeContents(v);+ return { text: Math.round(r.getBoundingClientRect().width * 10) / 10, box: Math.round(v.getBoundingClientRect().width * 10) / 10 };+ });+ const before = await cut();+ check(`${tag} open: Quality's Auto · Standard · 25 steps isn't cut off`, before.text <= before.box + 0.5, `${before.text} px of text in ${before.box} px`);await quality.focus();await page.keyboard.press("Enter");const best = page.getByRole("option", { name: "Best · 50 steps" });@@ -153,6 +163,8 @@ try {await page.keyboard.press("Enter");await page.waitForTimeout(300);check(`${tag} open: Best picked from the keyboard`, /Best · 50 steps/.test(flat(await quality.innerText())), flat(await quality.innerText()));+ const after = await cut();+ check(`${tag} open: Quality's Best · 50 steps isn't cut off`, after.text <= after.box + 0.5, `${after.text} px of text in ${after.box} px`);await shoot(page, `moss-options-${width}-${scheme}.png`);await page.keyboard.press("Escape");await page.keyboard.press("Escape");