From 1a3236f6506ffba87d65308a99b4cc0653b0d0ad Mon Sep 17 00:00:00 2001 From: c0mrade Date: Sat, 6 Jun 2026 21:44:07 +0300 Subject: [PATCH] fix(cabinet): equal-height StatCards so dashboard balance/referral align MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In a grid, the wrapping stretched to the row height but the StatCard inside only took content height, so the referral card (which has a subValue line) rendered taller than the balance card ('один толще другого'). Make StatCard fill its cell with h-full and stretch the StatsGrid links. Verified by rendering both cards against the built CSS: balance 86px->94px, now equal to referral's 94px. --- src/components/dashboard/StatsGrid.tsx | 4 ++-- src/components/stats/StatCard.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/dashboard/StatsGrid.tsx b/src/components/dashboard/StatsGrid.tsx index 7701566..79d280f 100644 --- a/src/components/dashboard/StatsGrid.tsx +++ b/src/components/dashboard/StatsGrid.tsx @@ -24,7 +24,7 @@ export default function StatsGrid({ return (
- + - + +
{label} {trailing}