From d932ac5d5935999863e5e9ff4566a15064323643 Mon Sep 17 00:00:00 2001 From: rosslh Date: Thu, 8 Oct 2026 12:18:10 +0200 Subject: [PATCH] fix(ui): center card titles when the description is empty Only render the card description when it has text, and center the title against the icon. Removing the description placeholders left an empty description element in items-start rows, so titles without a description were pinned to the top of the icon. Closes #12102 --- resources/views/livewire/dashboard.blade.php | 20 +++++++++++-------- .../views/livewire/project/index.blade.php | 5 +++-- .../views/livewire/server/index.blade.php | 10 ++++++---- .../server/private-key/show.blade.php | 10 ++++++---- .../environment/index.blade.php | 2 +- .../shared-variables/project/index.blade.php | 6 ++++-- 6 files changed, 32 insertions(+), 21 deletions(-) diff --git a/resources/views/livewire/dashboard.blade.php b/resources/views/livewire/dashboard.blade.php index 472b3e9961..5de545df33 100644 --- a/resources/views/livewire/dashboard.blade.php +++ b/resources/views/livewire/dashboard.blade.php @@ -83,14 +83,16 @@ @endif -
+

{{ $project->name }}

-

- {{ $project->description }} -

+ @if (filled($project->description)) +

+ {{ $project->description }} +

+ @endif
@@ -204,14 +206,16 @@ class="flex size-8 shrink-0 items-center justify-center rounded-lg border border-neutral-200 bg-neutral-50 text-neutral-500 dark:border-white/[0.1] dark:bg-white/[0.04] dark:text-fg-dim"> -
+

{{ $server->name }}

-

- {{ $server->description }} -

+ @if (filled($server->description)) +

+ {{ $server->description }} +

+ @endif
@if ($serverStatusType !== 'success')
-
+

+ x-show="project.description?.trim()" + x-text="project.description">

diff --git a/resources/views/livewire/server/index.blade.php b/resources/views/livewire/server/index.blade.php index 5258673700..30eca6ac13 100644 --- a/resources/views/livewire/server/index.blade.php +++ b/resources/views/livewire/server/index.blade.php @@ -147,13 +147,15 @@ class="flex size-8 shrink-0 items-center justify-center rounded-lg border border-neutral-200 bg-neutral-50 text-neutral-500 dark:border-white/[0.1] dark:bg-white/[0.04] dark:text-fg-dim"> -
+

{{ $serverRow['name'] }}

-

- {{ $serverRow['description'] }} -

+ @if (filled($serverRow['description'])) +

+ {{ $serverRow['description'] }} +

+ @endif
@if ($serverRow['statusType'] !== 'success')
-
+

{{ $privateKey->name }} @@ -77,9 +77,11 @@ @endif

-

- {{ $privateKey->description }} -

+ @if (filled($privateKey->description)) +

+ {{ $privateKey->description }} +

+ @endif
diff --git a/resources/views/livewire/shared-variables/environment/index.blade.php b/resources/views/livewire/shared-variables/environment/index.blade.php index 645f2e61be..ed8e38407a 100644 --- a/resources/views/livewire/shared-variables/environment/index.blade.php +++ b/resources/views/livewire/shared-variables/environment/index.blade.php @@ -33,7 +33,7 @@ href="{{ route('shared-variables.environment.show', ['project_uuid' => $project->uuid, 'environment_uuid' => $environment->uuid]) }}" {{ wireNavigate() }}>
-

{{ $environment->name }}

{{ $environment->description }}

+

{{ $environment->name }}

@if (filled($environment->description))

{{ $environment->description }}

@endif
@endforeach diff --git a/resources/views/livewire/shared-variables/project/index.blade.php b/resources/views/livewire/shared-variables/project/index.blade.php index d19fc39f5e..e1ac890a52 100644 --- a/resources/views/livewire/shared-variables/project/index.blade.php +++ b/resources/views/livewire/shared-variables/project/index.blade.php @@ -31,9 +31,11 @@ @endif
-
+

{{ $project->name }}

-

{{ $project->description }}

+ @if (filled($project->description)) +

{{ $project->description }}

+ @endif