From 9f944e531abfa9090da85bbf8ee3291cf9614e50 Mon Sep 17 00:00:00 2001 From: Jeet Debnath Date: Tue, 21 Apr 2026 10:49:13 +0530 Subject: [PATCH] clock ui update --- src/components/ClockTimePicker.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/components/ClockTimePicker.tsx b/src/components/ClockTimePicker.tsx index f0aea4a..49cdcaa 100644 --- a/src/components/ClockTimePicker.tsx +++ b/src/components/ClockTimePicker.tsx @@ -238,17 +238,24 @@ export default function ClockTimePicker({ value, onChange, disabled }: Props) { {mode === 'hours' && hourPositions.map(({ h, x, y }) => ( + h === selectedNum ? null : {h} ))} {mode === 'minutes' && minutePositions.map(({ m, x, y }) => ( + m === selectedNum ? null : {m.toString().padStart(2, '0')} ))} + {/* Selected number rendered at hand tip so it sits centered in the green circle */} + {mode === 'hours' ? selectedNum : selectedNum.toString().padStart(2, '0')} + {mode === 'minutes' && Array.from({ length: 60 }, (_, i) => { if (i % 5 === 0) return null const angle = (i / 60) * 360