Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Formatting

pythongosssss722801ed2da8
diff --git a/web/scripts/ui.js b/web/scripts/ui.js
index 194d8e2dd..587f4e529 100644
--- a/web/scripts/ui.js
+++ b/web/scripts/ui.js
@@ -66,7 +66,6 @@ function dragElement(dragEl, settings) {
function positionElement() {
const halfWidth = document.body.clientWidth / 2;
-
const anchorRight = newPosX + dragEl.clientWidth / 2 > halfWidth;
// set the element's new position:
@@ -77,8 +76,9 @@ function dragElement(dragEl, settings) {
dragEl.style.left = newPosX + "px";
dragEl.style.right = "unset";
}
- dragEl.style.top = newPosY + "px";
- dragEl.style.bottom = "unset";
+
+ dragEl.style.top = newPosY + "px";
+ dragEl.style.bottom = "unset";
if (savePos) {
localStorage.setItem(