From 9c3332fe3622747a44ab7fa2d0cad04da74d5092 Mon Sep 17 00:00:00 2001 From: Denis Shatskiy Date: Sun, 10 Aug 2025 16:14:56 +0700 Subject: [PATCH] refactor: Update MetricCard component in Dashboard for improved layout and styling, enhancing visual hierarchy and responsiveness --- frontend/src/Dashboard.jsx | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/frontend/src/Dashboard.jsx b/frontend/src/Dashboard.jsx index a02bc73..b89871f 100644 --- a/frontend/src/Dashboard.jsx +++ b/frontend/src/Dashboard.jsx @@ -37,20 +37,19 @@ function StatCard({ icon: Icon, color, value, title, subtitle, to }) { function MetricCard({ title, value, icon: Icon, color, description }) { return ( -
-
-
- - - -
-
{value}
-
{title}
+
+
+ + + +
+
+ {value} {title}
+ {description && ( +
{description}
+ )}
- {description && ( -
{description}
- )}
);