Merge pull request #468 from stuffinator/patch-1

Fix datetime widget size issue
This commit is contained in:
shamoon 2022-10-30 08:08:45 -07:00 committed by GitHub
commit 161164b2cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,10 +27,12 @@ export default function DateTime({ options }) {
const dateFormat = new Intl.DateTimeFormat(i18n.language, { ...format }); const dateFormat = new Intl.DateTimeFormat(i18n.language, { ...format });
return ( return (
<div className="flex flex-row items-center grow justify-end"> <div className="flex flex-col justify-center first:ml-0 ml-4">
<span className={`text-theme-800 dark:text-theme-200 ${textSizes[textSize || "lg"]}`}> <div className="flex flex-row items-center grow justify-end">
{dateFormat.format(date)} <span className={`text-theme-800 dark:text-theme-200 ${textSizes[textSize || "lg"]}`}>
</span> {dateFormat.format(date)}
</span>
</div>
</div> </div>
); );
} }