Tweaked README node graph info.

This commit is contained in:
Christian Bastian
2024-07-28 02:46:24 -04:00
parent a064e5e7ee
commit 525d71a981
3 changed files with 9 additions and 7 deletions

View File

@@ -4529,7 +4529,7 @@ class ModelManager extends ComfyDialog {
modelManager.style.setProperty("--model-manager-sidebar-width-right", (rightDecimal * width) + "px");
modelManager.style.setProperty("--model-manager-sidebar-height-top", + (topDecimal * height) + "px");
modelManager.style.setProperty("--model-manager-sidebar-height-bottom", (bottomDecimal * height) + "px");
});
});
const EDGE_DELTA = 8;
@@ -4773,7 +4773,7 @@ class ModelManager extends ComfyDialog {
}
#updateSidebarButtons = () => {
const managerRect = document.body.getBoundingClientRect();
const managerRect = this.element.getBoundingClientRect();
const isNarrow = managerRect.width < 768; // TODO: `minWidth` is a magic value
const alwaysShowCompactSidebarControls = this.#settingsView.elements.settings["sidebar-control-always-compact"].checked;
if (isNarrow || alwaysShowCompactSidebarControls) {