mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-01 21:13:39 +01:00
Merge pull request #468 from stuffinator/patch-1
Fix datetime widget size issue
This commit is contained in:
commit
161164b2cc
@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user