Fix indentation

This commit is contained in:
missionfloyd 2023-04-12 21:15:21 -06:00
parent e87aa1873f
commit 8810e1b4b9

View File

@ -270,7 +270,7 @@ class ComfySettingsDialog extends ComfyDialog {
]), ]),
]); ]);
break; break;
case "slider": case "slider":
element = $el("div", [ element = $el("div", [
$el("label", { textContent: name }, [ $el("label", { textContent: name }, [
$el("input", { $el("input", {
@ -278,16 +278,16 @@ class ComfySettingsDialog extends ComfyDialog {
value, value,
oninput: (e) => { oninput: (e) => {
setter(e.target.value); setter(e.target.value);
e.target.nextElementSibling.value = e.target.value; e.target.nextElementSibling.value = e.target.value;
}, },
...attrs ...attrs
}), }),
$el("input", { $el("input", {
type: "number", type: "number",
value, value,
oninput: (e) => { oninput: (e) => {
setter(e.target.value); setter(e.target.value);
e.target.previousElementSibling.value = e.target.value; e.target.previousElementSibling.value = e.target.value;
}, },
...attrs ...attrs
}), }),