mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-01 13:59:54 +00:00
This reverts commit 0d084e2cb0.
This commit is contained in:
@@ -104,8 +104,6 @@ function dragElement(dragEl, settings) {
|
||||
}
|
||||
|
||||
function positionElement() {
|
||||
if (dragEl.style.display === "none") return;
|
||||
|
||||
const halfWidth = document.body.clientWidth / 2;
|
||||
const anchorRight = newPosX + dragEl.clientWidth / 2 > halfWidth;
|
||||
|
||||
@@ -195,8 +193,6 @@ function dragElement(dragEl, settings) {
|
||||
document.onmouseup = null;
|
||||
document.onmousemove = null;
|
||||
}
|
||||
|
||||
return restorePos;
|
||||
}
|
||||
|
||||
class ComfyList {
|
||||
@@ -394,9 +390,6 @@ export class ComfyUI {
|
||||
},
|
||||
}) as HTMLInputElement;
|
||||
|
||||
// @ts-ignore
|
||||
this.loadFile = () => fileInput.click();
|
||||
|
||||
const autoQueueModeEl = toggleSwitch(
|
||||
"autoQueueMode",
|
||||
[
|
||||
@@ -652,11 +645,10 @@ export class ComfyUI {
|
||||
name: "Enable Dev mode Options",
|
||||
type: "boolean",
|
||||
defaultValue: false,
|
||||
onChange: function (value) { document.getElementById("comfy-dev-save-api-button").style.display = value ? "flex" : "none" },
|
||||
onChange: function (value) { document.getElementById("comfy-dev-save-api-button").style.display = value ? "block" : "none" },
|
||||
});
|
||||
|
||||
// @ts-ignore
|
||||
this.restoreMenuPosition = dragElement(this.menuContainer, this.settings);
|
||||
dragElement(this.menuContainer, this.settings);
|
||||
|
||||
this.setStatus({ exec_info: { queue_remaining: "X" } });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user