From 24df57be0e0872ef296ed9cf9c95b57a31e32b01 Mon Sep 17 00:00:00 2001 From: isaacclad Date: Fri, 24 Jul 2026 14:53:35 +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/mini/payment-qrs/index.blade.php | 8 ++++---- resources/views/qr-codes/index.blade.php | 8 ++++---- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/resources/css/app.css b/resources/css/app.css index 4547a36..e358141 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -101,7 +101,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 { @@ -161,7 +164,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/mini/payment-qrs/index.blade.php b/resources/views/mini/payment-qrs/index.blade.php index 6aef6df..30147dc 100644 --- a/resources/views/mini/payment-qrs/index.blade.php +++ b/resources/views/mini/payment-qrs/index.blade.php @@ -38,16 +38,16 @@ -
-
+
+

GHS {{ number_format($wallet->spendableBalance(), 2) }}

Account balance

-
+

{{ $qrCodes->count() }}

Payment QRs

-
+

{{ number_format($activeCount) }}

Active

diff --git a/resources/views/qr-codes/index.blade.php b/resources/views/qr-codes/index.blade.php index 34feb37..d849faf 100644 --- a/resources/views/qr-codes/index.blade.php +++ b/resources/views/qr-codes/index.blade.php @@ -38,16 +38,16 @@
-
-
+
+

GHS {{ number_format($wallet->spendableBalance(), 2) }}

Account balance

-
+

{{ $qrCodes->count() }}

Events

-
+

{{ number_format($totalRegistrations) }}

Registrations