refactor: simplify seconds display in Overview time component

This commit is contained in:
hamster1963 2025-02-05 01:23:22 +08:00
parent c520d415e8
commit 9fc050c2a1

View File

@ -136,13 +136,7 @@ function Overview() {
digits={{ 1: { max: 5 } }}
format={{ minimumIntegerDigits: 2 }}
/>
<NumberFlow
prefix=":"
trend={1}
value={time.ss}
digits={{ 1: { max: 5 } }}
format={{ minimumIntegerDigits: 2 }}
/>
<p className="mt-[0.5px]">:{time.ss.toString().padStart(2, "0")}</p>
</div>
</NumberFlowGroup>
</div>