From 3a381ee1113ba9205a95d7a66431793e64a1dbc3 Mon Sep 17 00:00:00 2001 From: juanatsap Date: Wed, 12 Nov 2025 16:55:28 +0000 Subject: [PATCH] fix: apply inverse zoom to fixed buttons to maintain constant size --- static/js/main.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/static/js/main.js b/static/js/main.js index 355b4f7..e1173f9 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -368,6 +368,14 @@ zoomWrapper.style.minWidth = ''; } + // Reset zoom on fixed buttons so they stay same size + const backToTopBtn = document.getElementById('back-to-top'); + const infoBtn = document.getElementById('info-button'); + const inverseZoom = 1 / zoomLevel; + + if (backToTopBtn) backToTopBtn.style.zoom = inverseZoom; + if (infoBtn) infoBtn.style.zoom = inverseZoom; + // Update display updateZoomDisplay(zoomValue);