make things look nicer and work on image change
This commit is contained in:
@@ -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");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user