Height fix

This commit is contained in:
Danil Boldyrev 2023-08-10 16:17:52 +03:00
parent ed01d2ee3b
commit 045f740892
1 changed files with 5 additions and 0 deletions

View File

@ -378,6 +378,11 @@ onUiLoaded(async() => {
toggleOverlap("off");
fullScreenMode = false;
const closeBtn = targetElement.querySelector("button[aria-label='Remove Image']");
if (closeBtn) {
closeBtn.addEventListener("click", resetZoom);
}
if (
canvas &&
parseFloat(canvas.style.width) > 865 &&