From eb015f342121f7d3b526dbdcd4f397ab5e4084ed Mon Sep 17 00:00:00 2001 From: "Joseph.Rawlings" Date: Wed, 17 Dec 2025 11:48:48 -0500 Subject: [PATCH] refactor: update stat card component for improved styling and layout --- .../views/components/ui/stat-card.blade.php | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/extensions/Servers/Proxmox/views/components/ui/stat-card.blade.php b/extensions/Servers/Proxmox/views/components/ui/stat-card.blade.php index 5e4fe97b8..a55b044b4 100644 --- a/extensions/Servers/Proxmox/views/components/ui/stat-card.blade.php +++ b/extensions/Servers/Proxmox/views/components/ui/stat-card.blade.php @@ -1,5 +1,5 @@ {{-- - Stat Card Component - TailServer Theme (shadcn-inspired) + Stat Card Component - shadcn-inspired Usage: @@ -40,20 +40,20 @@ <{{ $tag }} @if($href) href="{{ $href }}" @endif {{ $attributes->class([ - 'flex flex-col gap-6 rounded-xl border border-neutral/15 bg-card py-6 text-card-foreground shadow-sm', - 'hover:shadow-md transition-shadow duration-150 cursor-pointer' => $href || $clickable, + 'rounded-xl border bg-card p-6 shadow-sm', + 'hover:bg-accent/50 transition-colors duration-150 cursor-pointer' => $href || $clickable, ]) }} > -
-

{{ $label }}

+
+ {{ $label }} @if($icon) @endif
-
-
!$compact, 'text-xl' => $compact])> - @if($prefix){{ $prefix }}@endif{{ $value }}@if($suffix){{ $suffix }}@endif -
+
+ !$compact, 'text-xl' => $compact])> + @if($prefix){{ $prefix }}@endif{{ $value }}@if($suffix){{ $suffix }}@endif + @if($change !== null || $changeLabel)

@if($change !== null) @@ -67,15 +67,15 @@

@if($progress !== null) -
-
-
+
+
+
@endif @if($statusText) -
+
{{ $statusText }}
@endif