Browse Source

I think it looks a bit better like this.

pull/104/head
comfyanonymous 2 years ago
parent
commit
07598e27e5
  1. 4
      web/scripts/ui.js

4
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) => {

Loading…
Cancel
Save