fix: improve stats responsiveness

This commit is contained in:
Xylight committed 2024-09-08 14:58:09 -07:00
1 parent 53ec967dce
commit 09012b48e4
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -94,7 +94,7 @@
<div class="text-sm flex flex-row flex-wrap gap-3 mx-auto">
{#each stats as stat}
<div
class="p-3 px-4 rounded-xl flex-1 bg-white/50 dark:bg-zinc-900/50 border border-slate-300 dark:border-zinc-800 border-opacity-50"
class="min-w-36 p-3 px-4 rounded-xl flex-1 bg-white/50 dark:bg-zinc-900/50 border border-slate-300 dark:border-zinc-800 border-opacity-50"
>
<div class="text-primary-900 dark:text-primary-100">
{stat.name}
+1 -1
View File
@@ -164,7 +164,7 @@
name: $t('stats.joined'),
value: formatRelativeDate(
publishedToDate(data.person_view.person.published),
{ style: 'long' }
{ style: 'short' }
).toString(),
format: false,
},