From c50287a4a654a222618515a532f4f5b8d2528f54 Mon Sep 17 00:00:00 2001 From: juanatsap Date: Wed, 12 Nov 2025 16:35:31 +0000 Subject: [PATCH] fix: center zoom at 100% by adjusting range to 25-175% --- static/js/main.js | 4 ++-- templates/index.html | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/static/js/main.js b/static/js/main.js index f339090..7fc07a5 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -343,7 +343,7 @@ /** * Apply zoom transformation to CV paper - * @param {number} zoomValue - Zoom percentage (50-200) + * @param {number} zoomValue - Zoom percentage (25-175, centered at 100) * @param {boolean} saveToStorage - Whether to persist to localStorage */ function applyZoom(zoomValue, saveToStorage = true) { @@ -410,7 +410,7 @@ if (!slider) return; const currentZoom = parseInt(slider.value, 10); - const newZoom = Math.min(200, Math.max(50, currentZoom + step)); + const newZoom = Math.min(175, Math.max(25, currentZoom + step)); slider.value = newZoom; applyZoom(newZoom, true); diff --git a/templates/index.html b/templates/index.html index 02bdb38..dcc54f1 100644 --- a/templates/index.html +++ b/templates/index.html @@ -471,23 +471,23 @@ - + - +