From 0406679f18e3f4ee75cdd74aea42114448713a35 Mon Sep 17 00:00:00 2001 From: pythongosssss <125205205+pythongosssss@users.noreply.github.com> Date: Sat, 23 Mar 2024 21:20:46 +0000 Subject: [PATCH] Toggle body display on setting change --- web/scripts/ui/menu/index.js | 2 ++ web/style.css | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/web/scripts/ui/menu/index.js b/web/scripts/ui/menu/index.js index 98454bbf2..f0823e929 100644 --- a/web/scripts/ui/menu/index.js +++ b/web/scripts/ui/menu/index.js @@ -136,11 +136,13 @@ export class ComfyAppMenu { type: "boolean", onChange: async (v) => { if (v) { + document.body.style.display = "grid"; app.ui.menuContainer.style.display = "none"; this.element.style.removeProperty("display"); this.calculateSizeBreak(); } else { + document.body.style.removeProperty("display"); app.ui.menuContainer.style.removeProperty("display"); this.element.style.display = "none"; } diff --git a/web/style.css b/web/style.css index 035b36449..673852aa3 100644 --- a/web/style.css +++ b/web/style.css @@ -40,7 +40,6 @@ body { overflow: hidden; background-color: var(--bg-color); color: var(--fg-color); - display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto 1fr auto; }