From 5ffd365c43376037020cb09b9f8eb5aa4c495036 Mon Sep 17 00:00:00 2001 From: shuki Date: Thu, 5 Mar 2026 19:33:56 +0200 Subject: [PATCH] Use inline styles for cPanel navbar to avoid Jupiter CSS conflicts cPanel's Jupiter theme overrides DaisyUI's .navbar component class. Replace with plain flex layout using inline styles. Co-Authored-By: Claude Opus 4.6 --- cpanel/gniza/lib/GnizaCPanel/UI.pm | 33 ++++++++++++------------------ 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/cpanel/gniza/lib/GnizaCPanel/UI.pm b/cpanel/gniza/lib/GnizaCPanel/UI.pm index b6c71f0..9c71bba 100644 --- a/cpanel/gniza/lib/GnizaCPanel/UI.pm +++ b/cpanel/gniza/lib/GnizaCPanel/UI.pm @@ -13,6 +13,7 @@ my $_logo_data_uri = ''; my @NAV_ITEMS = ( { url => 'index.live.cgi', label => 'Select Source' }, { url => 'restore.live.cgi', label => 'Restore' }, + { url => 'logs.live.cgi', label => 'Logs' }, ); # ── HTML Escaping ───────────────────────────────────────────── @@ -34,34 +35,26 @@ sub render_nav { my ($current_page) = @_; my $logo = ''; if ($_logo_data_uri) { - $logo = qq{
} - . qq{} - . qq{GNIZA Backup} - . qq{
}; + $logo = qq{} + . qq{GNIZA Backup}; } my $menu_items = ''; for my $item (@NAV_ITEMS) { - my $active = ($item->{url} eq $current_page) ? ' active' : ''; + my $is_active = ($item->{url} eq $current_page); my $label = esc($item->{label}); - $menu_items .= qq{
  • $label
  • \n}; + my $style = $is_active + ? 'style="font-weight:600;color:inherit"' + : 'style="color:inherit;opacity:0.7"'; + $menu_items .= qq{$label\n}; } - my $html = qq{