From 02452c11e6333666f68e9af36cd47bebc57602d7 Mon Sep 17 00:00:00 2001 From: Aleksandar Date: Thu, 11 Dec 2025 13:41:57 +0100 Subject: [PATCH] fix: simplify AnalyticsDashboard layout to prevent text overflow and improve stability --- .../analytics/AnalyticsDashboard.tsx | 76 ++++++++++--------- 1 file changed, 40 insertions(+), 36 deletions(-) diff --git a/apps/admin/src/components/analytics/AnalyticsDashboard.tsx b/apps/admin/src/components/analytics/AnalyticsDashboard.tsx index f76b01d..2bfeab6 100644 --- a/apps/admin/src/components/analytics/AnalyticsDashboard.tsx +++ b/apps/admin/src/components/analytics/AnalyticsDashboard.tsx @@ -76,58 +76,62 @@ export function AnalyticsDashboard() { } return ( -
- {/* Key Metrics Cards */} -
-
-

Total Athletes

-
-
{totalUsers}
- active +
+ {/* Key Metrics Cards - Stacked vertically */} +
+
+

Total Athletes

+
+
{totalUsers}
+ active
-
-

Total Revenue

-
-
${totalRevenue.toLocaleString()}
- ytd +
+

Total Revenue

+
+
${totalRevenue.toLocaleString()}
+ ytd
-
-

Active Members

-
-
{activeMembers}
- members +
+

Active Members

+
+
{activeMembers}
+ members
- {/* Charts Grid */} -
-
-
-

User Growth Trend

-

Last 6 months performance

+ {/* Charts - Single column layout for stability */} +
+
+
+

User Growth Trend

+

Last 6 months performance

+
+
+
-
-
-
-
-

Membership Mix

-

Distribution breakdown

-
+
+
+

Membership Mix

+

Distribution breakdown

+
+
+
-
-
-

Revenue Stream

-

Monthly earnings

-
+
+
+

Revenue Stream

+

Monthly earnings

+
+