From 07598e27e57de5ea630f63dffa84acb87dd79035 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Wed, 15 Mar 2023 14:32:52 -0400 Subject: [PATCH] I think it looks a bit better like this. --- web/scripts/ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/scripts/ui.js b/web/scripts/ui.js index cb31f10e..c056371e 100644 --- a/web/scripts/ui.js +++ b/web/scripts/ui.js @@ -260,13 +260,13 @@ export class ComfyUI { $el("label", { innerHTML: "Extra options"}, [ $el("input", { type: "checkbox", onchange: (i) => { - document.getElementById('extraOptions').style.visibility = i.srcElement.checked ? "visible" : "collapse"; + document.getElementById('extraOptions').style.display = i.srcElement.checked ? "block" : "none"; this.batchCount = i.srcElement.checked ? document.getElementById('batchCountInputRange').value : 1; } }) ]) ]), - $el("div", { id: "extraOptions", style: { width: "100%", visibility: "collapse" }}, [ + $el("div", { id: "extraOptions", style: { width: "100%", display: "none" }}, [ $el("label", { innerHTML: "Batch count" }, [ $el("input", { id: "batchCountInputNumber", type: "number", value: this.batchCount, min: "1", style: { width: "35%", "margin-left": "0.4em" }, oninput: (i) => {