fix: qty sizing

This commit is contained in:
cha0s 2024-09-29 02:05:06 -05:00
parent 46cff307b1
commit 0cb5cdbe1f

View File

@ -36,7 +36,7 @@ export default function Slot({
{qty > 1 && ( {qty > 1 && (
<span <span
className={ className={
[styles.qty, `q-${Math.round(Math.log10(qty))}`] [styles.qty, `q-${Math.floor(Math.log10(qty))}`]
.filter(Boolean).join(' ') .filter(Boolean).join(' ')
} }
> >