use tabular-nums for percentages in ModelCancelDownload (#2553)
with this patch numbers in percentages have the same width so all the component widths stay the same https://tailwindcss.com/docs/font-variant-numeric#tabular-figures
This commit is contained in:
parent
30f34a41b7
commit
2a6f7745c8
@ -65,7 +65,9 @@ const ModalCancelDownload: React.FC<Props> = ({ model, isFromList }) => {
|
|||||||
}) as number
|
}) as number
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<span>{formatDownloadPercentage(downloadState.percent)}</span>
|
<span className="tabular-nums">
|
||||||
|
{formatDownloadPercentage(downloadState.percent)}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user