Merge pull request #765 from benphelps/fix-764

Use tabular nums for datetime to prevent size changing
This commit is contained in:
shamoon 2023-01-02 08:34:49 -08:00 committed by GitHub
commit 3a43cf247b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ export default function DateTime({ options }) {
return (
<div className="flex flex-col justify-center first:ml-0 ml-4">
<div className="flex flex-row items-center grow justify-end">
<span className={`text-theme-800 dark:text-theme-200 ${textSizes[textSize || "lg"]}`}>
<span className={`text-theme-800 dark:text-theme-200 tabular-nums ${textSizes[textSize || "lg"]}`}>
{date}
</span>
</div>