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);