diff --git a/resources/css/app.css b/resources/css/app.css index d387698..c22b35d 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -70,12 +70,18 @@ } .mobile-stats-card { - width: calc(66.666667% - 0.5rem); + width: max-content; + min-width: 9rem; + max-width: none; + box-sizing: border-box; } @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/components/servers/page-hero.blade.php b/resources/views/components/servers/page-hero.blade.php index 47e2daa..0b5f762 100644 --- a/resources/views/components/servers/page-hero.blade.php +++ b/resources/views/components/servers/page-hero.blade.php @@ -5,14 +5,6 @@ 'stats' => [], ]) -@php - $statCols = match (count($stats)) { - 4 => 'sm:grid-cols-2 lg:grid-cols-4', - 2 => 'sm:grid-cols-2', - default => 'sm:grid-cols-3', - }; -@endphp -
merge(['class' => 'relative overflow-hidden rounded-2xl border border-slate-200 bg-white']) }}>
@@ -33,9 +25,9 @@
@if (count($stats) > 0) -
+
@foreach ($stats as $stat) -
+

{{ $stat['value'] }}

{{ $stat['label'] }}