Skip to content

Commit 624087a

Browse files
committed
chore(users-statistics): improve layout and remove text truncation for better readability
1 parent ec22629 commit 624087a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

dashboard/src/components/users/users-statistics.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ const UsersStatistics = () => {
5050
)}
5151
/>
5252
<CardTitle className="relative z-10 flex min-w-0 items-center justify-between gap-x-4 overflow-hidden">
53-
<div className="flex min-w-0 flex-1 items-center gap-x-4 overflow-hidden">
53+
<div className="flex min-w-0 flex-1 items-center gap-x-4 overflow-hidden min-h-8">
5454
<div className="min-h-[10px] min-w-[10px] shrink-0 rounded-full bg-green-500 shadow-sm" />
55-
<span className="truncate">{t('statistics.onlineUsers')}</span>
55+
<span>{t('statistics.onlineUsers')}</span>
5656
</div>
5757
<span className={cn('mx-2 shrink-0 text-3xl transition-all duration-500', isIncreased.online_users ? 'animate-zoom-out' : '')} style={{ animationDuration: '400ms' }}>
5858
{data ? <CountUp end={data.online_users} /> : 0}
@@ -72,9 +72,9 @@ const UsersStatistics = () => {
7272
)}
7373
/>
7474
<CardTitle className="relative z-10 flex min-w-0 items-center justify-between gap-x-4 overflow-hidden">
75-
<div className="flex min-w-0 flex-1 items-center gap-x-4 overflow-hidden">
75+
<div className="flex min-w-0 flex-1 items-center gap-x-4 overflow-hidden min-h-8">
7676
<Wifi className="h-5 w-5 shrink-0" />
77-
<span className="truncate">{t('statistics.activeUsers')}</span>
77+
<span>{t('statistics.activeUsers')}</span>
7878
</div>
7979
<span className={cn('mx-2 shrink-0 text-3xl transition-all duration-500', isIncreased.active_users ? 'animate-zoom-out' : '')} style={{ animationDuration: '400ms' }}>
8080
{data ? <CountUp end={data.active_users} /> : 0}
@@ -94,9 +94,9 @@ const UsersStatistics = () => {
9494
)}
9595
/>
9696
<CardTitle className="relative z-10 flex min-w-0 items-center justify-between gap-x-4 overflow-hidden">
97-
<div className="flex min-w-0 flex-1 items-center gap-x-4 overflow-hidden">
97+
<div className="flex min-w-0 flex-1 items-center gap-x-4 overflow-hidden min-h-8">
9898
<Users className="h-5 w-5 shrink-0" />
99-
<span className="truncate">{t('statistics.users')}</span>
99+
<span>{t('statistics.users')}</span>
100100
</div>
101101
<span className={cn('mx-2 shrink-0 text-3xl transition-all duration-500', isIncreased.total_user ? 'animate-zoom-out' : '')} style={{ animationDuration: '400ms' }}>
102102
{data ? <CountUp end={data.total_user} /> : 0}

0 commit comments

Comments
 (0)