nicolium: fix step slider looking off

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-02-12 11:40:27 +01:00
parent 4ef2e04bf8
commit ff349a20c2

View File

@ -72,7 +72,7 @@ const StepSlider: React.FC<IStepSlider> = ({ value, steps, onChange }) => {
<span <span
className='absolute top-1/2 z-10 -ml-1.5 size-3 -translate-y-1/2 rounded-full bg-accent-500 shadow' className='absolute top-1/2 z-10 -ml-1.5 size-3 -translate-y-1/2 rounded-full bg-accent-500 shadow'
tabIndex={0} tabIndex={0}
style={{ left: `${value / (steps - 1) * 100}%` }} style={{ left: `calc(${value / (steps - 1) * 100}% + 0.125rem)` }}
/> />
</div> </div>
); );