mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-20 22:17:02 +08:00
Toggle body display on setting change
This commit is contained in:
parent
ea611cf8c9
commit
0406679f18
@ -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";
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user