From 325020338ddc57a92f5baae204be5601fedd7e39 Mon Sep 17 00:00:00 2001 From: shuki Date: Thu, 5 Mar 2026 05:30:21 +0200 Subject: [PATCH] Replace stat components with card-based layout for stats grid DaisyUI stat components have internal styles that conflict when used as standalone grid items, causing vertical overlap. Switch to plain card components with manual typography classes instead. Co-Authored-By: Claude Opus 4.6 --- whm/gniza-whm/index.cgi | 62 ++++++++++++++++++++++++----------------- 1 file changed, 37 insertions(+), 25 deletions(-) diff --git a/whm/gniza-whm/index.cgi b/whm/gniza-whm/index.cgi index 2623ba6..c07d2ac 100644 --- a/whm/gniza-whm/index.cgi +++ b/whm/gniza-whm/index.cgi @@ -116,40 +116,50 @@ print GnizaWHM::UI::render_flash(); # Card 1: cPanel Accounts my $acct_count = scalar @cpanel_accounts; - print qq{
\n}; - print qq{
cPanel Accounts
\n}; - print qq{
$acct_count
\n}; - print qq{
on this server
\n}; + print qq{
\n}; + print qq{
\n}; + print qq{
cPanel Accounts
\n}; + print qq{
$acct_count
\n}; + print qq{
on this server
\n}; + print qq{
\n}; print qq{
\n}; # Card 2: Backed Up Accounts - print qq{
\n}; - print qq{
Backed Up Accounts
\n}; - print qq{
$backed_up
\n}; + print qq{
\n}; + print qq{
\n}; + print qq{
Backed Up Accounts
\n}; + print qq{
$backed_up
\n}; my $remote_count_desc = scalar @remotes; - print qq{
across $remote_count_desc remote(s)
\n}; + print qq{
across $remote_count_desc remote(s)
\n}; + print qq{
\n}; print qq{
\n}; # Card 3: Total Snapshots - print qq{
\n}; - print qq{
Total Snapshots
\n}; - print qq{
$total_snaps
\n}; - print qq{
across all remotes
\n}; + print qq{
\n}; + print qq{
\n}; + print qq{
Total Snapshots
\n}; + print qq{
$total_snaps
\n}; + print qq{
across all remotes
\n}; + print qq{
\n}; print qq{
\n}; # Card 4: Remotes my $rem_count = scalar @remotes; - print qq{
\n}; - print qq{
Remotes
\n}; - print qq{
$rem_count
\n}; - print qq{
configured destinations
\n}; + print qq{
\n}; + print qq{
\n}; + print qq{
Remotes
\n}; + print qq{
$rem_count
\n}; + print qq{
configured destinations
\n}; + print qq{
\n}; print qq{
\n}; # Card 5: Schedules - print qq{
\n}; - print qq{
Schedules
\n}; - print qq{
$sched_count
\n}; - print qq{
active cron jobs
\n}; + print qq{
\n}; + print qq{
\n}; + print qq{
Schedules
\n}; + print qq{
$sched_count
\n}; + print qq{
active cron jobs
\n}; + print qq{
\n}; print qq{
\n}; # Card 6: Last Backup @@ -164,15 +174,17 @@ print GnizaWHM::UI::render_flash(); $badge_class = 'badge-neutral'; $badge_text = $has_stats ? 'UNKNOWN' : 'N/A'; } - print qq{
\n}; - print qq{
Last Backup
\n}; - print qq{
$badge_text
\n}; + print qq{
\n}; + print qq{
\n}; + print qq{
Last Backup
\n}; + print qq{
$badge_text
\n}; if ($last_log) { my $esc_log = GnizaWHM::UI::esc($last_log); - print qq{
$esc_log
\n}; + print qq{
$esc_log
\n}; } else { - print qq{
click Refresh to collect
\n}; + print qq{
click Refresh to collect
\n}; } + print qq{
\n}; print qq{
\n}; print qq{
\n};