fix: revert to CSS zoom property for proper layout-affecting zoom

This commit is contained in:
juanatsap
2025-11-12 16:51:05 +00:00
parent 2e506bb127
commit 3aeaf3db43
+2 -8
View File
@@ -354,14 +354,8 @@
const zoomLevel = zoomValue / 100;
requestAnimationFrame(() => {
// Use transform scale for true zoom that extends beyond viewport
zoomWrapper.style.transform = `scale(${zoomLevel})`;
zoomWrapper.style.transformOrigin = 'top center';
// Adjust wrapper height to account for scale
// This ensures the footer appears at the correct position
const originalHeight = zoomWrapper.scrollHeight;
zoomWrapper.style.marginBottom = `${originalHeight * (zoomLevel - 1)}px`;
// Use CSS zoom property - it properly affects layout and extends beyond viewport
zoomWrapper.style.zoom = zoomLevel;
// Update display
updateZoomDisplay(zoomValue);