From deb79cf0505ee5d1371a86ad4bc8501cf32d67c0 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Thu, 18 Dec 2025 12:44:39 +0100 Subject: [PATCH] Add loading overlay to runtime logs to prevent flicker during refresh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Shows a subtle loading indicator over the logs container during refresh or when enabling streaming. This masks any brief visual glitches from Livewire's DOM morphing when log content changes significantly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- resources/views/livewire/project/shared/get-logs.blade.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/views/livewire/project/shared/get-logs.blade.php b/resources/views/livewire/project/shared/get-logs.blade.php index 9fcd52cd7..138c8e564 100644 --- a/resources/views/livewire/project/shared/get-logs.blade.php +++ b/resources/views/livewire/project/shared/get-logs.blade.php @@ -391,7 +391,7 @@ class="flex overflow-y-auto overflow-x-hidden flex-col px-4 py-2 w-full min-w-0 class="text-gray-500 dark:text-gray-400 py-2"> No matches found. - @foreach ($displayLines as $line) + @foreach ($displayLines as $index => $line) @php // Parse timestamp from log line (ISO 8601 format: 2025-12-04T11:48:39.136764033Z) $timestamp = ''; @@ -411,8 +411,10 @@ class="text-gray-500 dark:text-gray-400 py-2"> // Format: 2025-Dec-04 09:44:58.198879 $timestamp = "{$year}-{$monthName}-{$day} {$time}.{$microseconds}"; } + // Use timestamp for stable key (unique per log line) + $lineKey = $timestamp ?: 'line-' . $index; @endphp -
+
@if ($timestamp && $showTimeStamps) {{ $timestamp }} @endif