make things look nicer and work on image change

This commit is contained in:
2026-06-30 14:24:03 -04:00
parent d2b0955303
commit 2ba179a62b
3 changed files with 28 additions and 12 deletions
+16
View File
@@ -270,6 +270,22 @@
image_dark_overlay.style.setProperty("--x-offset", "0px");
image_dark_overlay.style.setProperty("--y-offset", "0px");
bounds = calculateBoxBoundsOnImage({
x: 0,
y: 0,
});
image_dark_overlay.style.setProperty("--left-edge", bounds.left + "px");
image_dark_overlay.style.setProperty(
"--right-edge",
bounds.right + "px",
);
image_dark_overlay.style.setProperty("--top-edge", bounds.top + "px");
image_dark_overlay.style.setProperty(
"--bottom-edge",
bounds.bottom + "px",
);
resize_photo_box.style.setProperty("--size", "350px");
});