From 3a765e01a801a005a0599a303c86621efa41dbe1 Mon Sep 17 00:00:00 2001 From: Oleksandr Kozachuk Date: Sun, 15 Jun 2025 11:03:01 +0200 Subject: [PATCH] Fix analog positioning --- clock.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clock.js b/clock.js index 4818a09..b0ae1ba 100644 --- a/clock.js +++ b/clock.js @@ -43,8 +43,8 @@ // Position markers based on the current clock size // Move markers slightly inward and tweak the center position so // the ring of ticks lines up perfectly with the border. - const borderOffset = clock.offsetWidth > 300 ? 35 : 25; - const centerAdjust = { x: -1, y: -1 }; + const borderOffset = clock.offsetWidth > 300 ? 45 : 26; + const centerAdjust = { x: -3, y: -2 }; const markerRadius = clock.offsetWidth / 2 - borderOffset; markers.forEach((m, i) => { const angle = (i / 16) * 2 * Math.PI;