From e00b78f2f64ce4b39a461968139a3a1ec449effb Mon Sep 17 00:00:00 2001 From: OpenSquared Date: Fri, 26 Jun 2026 22:31:12 +0200 Subject: [PATCH] fix: add position tick on colorize sliders so cursor is visible at baseline At baseline (deviation=0) the colored bar had width=0 and disappeared. Added a 2px vertical tick mark at the current slider position so the handle location is always visible even when there's no deviation. Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/pages/EuroSimulator.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/src/pages/EuroSimulator.tsx b/frontend/src/pages/EuroSimulator.tsx index a7a68ba..cc4bd34 100644 --- a/frontend/src/pages/EuroSimulator.tsx +++ b/frontend/src/pages/EuroSimulator.tsx @@ -163,6 +163,7 @@ function Slider({ )}>{format(value)}
+ {/* Deviation bar (colored, from center to current value) */}
+ {/* Position tick — always visible so cursor location is clear at baseline */} + {colorize && ( +
+ )} onChange(parseFloat(e.target.value))}