From 70f253b40cec5c1cb4a610338022aac1066329fc Mon Sep 17 00:00:00 2001 From: isaacclad Date: Fri, 24 Jul 2026 14:53:28 +0000 Subject: [PATCH] Let hero stats cards auto-expand to fit long values. Replace fixed mobile widths and equal grid columns with content-sized cards so figures like GHS balances and storage sizes are never clipped. --- resources/css/app.css | 10 ++++++++-- resources/views/meet/partials/index-page.blade.php | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/resources/css/app.css b/resources/css/app.css index f2d92d3..509ee84 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -785,7 +785,10 @@ html.qr-mobile-page body { } .mobile-stats-card { - width: calc(66.666667% - 0.5rem); + width: max-content; + min-width: 9rem; + max-width: none; + box-sizing: border-box; } @layer components { @@ -1022,7 +1025,10 @@ html.qr-mobile-page body { @media (min-width: 640px) { .mobile-stats-card { - width: auto; + width: max-content; + min-width: 9rem; + max-width: none; + flex: 1 1 auto; } } diff --git a/resources/views/meet/partials/index-page.blade.php b/resources/views/meet/partials/index-page.blade.php index e243194..8821f65 100644 --- a/resources/views/meet/partials/index-page.blade.php +++ b/resources/views/meet/partials/index-page.blade.php @@ -40,9 +40,9 @@ @if (count($stats) > 0) -
+
@foreach ($stats as $stat) -
+

{{ $stat['value'] }}

{{ $stat['label'] }}