Toggle body display on setting change

This commit is contained in:
pythongosssss 2024-03-23 21:20:46 +00:00
parent ea611cf8c9
commit 0406679f18
2 changed files with 2 additions and 1 deletions

View File

@ -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";
}

View File

@ -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;
}