fix toggle diff for all

This commit is contained in:
NightFox 2024-02-15 02:54:19 +03:00
parent 25993bb08c
commit 658868d568

View File

@ -468,8 +468,8 @@ window.onload = () => {
Text(" Toggle diff for all"),
Tag("input", {"type": "checkbox", "name": "all_diff", ...uglyChecked(all_diff)}, null, null, "change", (e) => {
images.classList.toggle("all_diff");
vpaddin_input.disabled = !vpaddin_input.disabled;
images.classList.toggle("vpadding");
//vpaddin_input.disabled = !vpaddin_input.disabled;
//images.classList.toggle("vpadding");
saveToLocalStorage("rendertest_all_diff", e.target.checked);
})
])
@ -520,8 +520,8 @@ window.onload = () => {
}
if (all_diff) { // TODO: better UX
images.classList.toggle("all_diff");
vpaddin_input.disabled = !vpaddin_input.disabled;
images.classList.toggle("vpadding");
//vpaddin_input.disabled = !vpaddin_input.disabled;
//images.classList.toggle("vpadding");
}
if (diffMode == "separate") {
images.classList.toggle("diff_separate");