From 94ba177220c39b6c23f4b4bff6f0cc3cd76d8a4a Mon Sep 17 00:00:00 2001 From: juanatsap Date: Wed, 12 Nov 2025 16:34:03 +0000 Subject: [PATCH] fix: restore zoom range to 50-200% with 100% centered --- 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 ad16680..f339090 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 (10-500) + * @param {number} zoomValue - Zoom percentage (50-200) * @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(500, Math.max(10, currentZoom + step)); + const newZoom = Math.min(200, Math.max(50, currentZoom + step)); slider.value = newZoom; applyZoom(newZoom, true); diff --git a/templates/index.html b/templates/index.html index 5d4ed4a..02bdb38 100644 --- a/templates/index.html +++ b/templates/index.html @@ -471,23 +471,23 @@ - + - +