From 3c538e00dd44864a5d6b5380028da360129c4b78 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 12 Feb 2025 10:30:27 +0100 Subject: [PATCH] fix(deployment): improve log line rendering and formatting --- .../livewire/project/application/deployment/show.blade.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/views/livewire/project/application/deployment/show.blade.php b/resources/views/livewire/project/application/deployment/show.blade.php index 02c68317d..f765ed35f 100644 --- a/resources/views/livewire/project/application/deployment/show.blade.php +++ b/resources/views/livewire/project/application/deployment/show.blade.php @@ -108,16 +108,16 @@
@forelse ($this->logLines as $line)
$line['command'] ?? false, + 'mt-2' => isset($line['command']) && $line['command'], 'flex gap-2 dark:hover:bg-coolgray-500 hover:bg-gray-100', ])> {{ $line['timestamp'] }} $line['hidden'], 'text-red-500' => $line['stderr'], - 'font-bold' => $line['command'] ?? false, + 'font-bold' => isset($line['command']) && $line['command'], 'whitespace-pre-wrap', - ])>{!! $line['line'] !!} + ])>{!! (isset($line['command']) && $line['command'] ? '[CMD]: ' : '') . trim($line['line']) !!}
@empty No logs yet.