From a42ecd67bfc321917d10d8a042dd8169ea52af67 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 10 Mar 2023 03:51:45 +0200 Subject: [PATCH] on mobile - zoom out when closing expanded image (testing on devrama) --- files/assets/js/core.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/files/assets/js/core.js b/files/assets/js/core.js index 412565457..198cff735 100644 --- a/files/assets/js/core.js +++ b/files/assets/js/core.js @@ -600,3 +600,9 @@ function handleUploadProgress(e, upload_prog) { percentIndicator.textContent = progressPercent + '%'; } } + +if (width < 768) { + document.getElementById('expandImageModal').addEventListener('hidden.bs.modal', () => { + document.body.style.zoom = "100%"; + }); +}