prevent the counter from wiggling when the time changes
This commit is contained in:
parent
4b46ed7b4b
commit
70a484a270
1 changed files with 5 additions and 1 deletions
|
|
@ -31,5 +31,9 @@ export default function StopTime({ running }: { running?: boolean }) {
|
||||||
return () => clearInterval(interval);
|
return () => clearInterval(interval);
|
||||||
}, [running]);
|
}, [running]);
|
||||||
|
|
||||||
return <span className="ml-1 text-sm">{calculateTimeDuration(secs)}</span>;
|
return (
|
||||||
|
<div className="ml-1 flex w-10 items-center justify-center">
|
||||||
|
<span className="text-sm">{calculateTimeDuration(secs)}</span>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue