fix(servers): cap a lone firewall/fail2ban panel so it doesn't stretch full width

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
feat/v1-foundation
boban 2026-06-14 20:59:58 +02:00
parent a8616809f1
commit 6a4ba16480
1 changed files with 6 additions and 1 deletions

View File

@ -272,7 +272,12 @@
@endphp
@if ($panelCount > 0)
<div @class(['grid grid-cols-1 gap-3', 'lg:grid-cols-2 lg:items-start' => $panelCount === 2])>
{{-- Two tools side-by-side; a lone tool is capped so it doesn't stretch edge-to-edge. --}}
<div @class([
'grid grid-cols-1 gap-3',
'lg:grid-cols-2 lg:items-start' => $panelCount === 2,
'lg:max-w-2xl' => $panelCount === 1,
])>
@if ($showFw)
{{-- Firewall-Regeln --}}
<x-panel :title="__('servers.firewall_title')"