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