From 3935a3c88577dedfad6214400b90ceb5ab963d13 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 16 Apr 2024 12:41:13 +0200 Subject: [PATCH] Refactor ActivityMonitor component to add fullHeight option --- app/Livewire/ActivityMonitor.php | 1 + resources/views/livewire/activity-monitor.blade.php | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/Livewire/ActivityMonitor.php b/app/Livewire/ActivityMonitor.php index 421992cb5..37bfc77bb 100644 --- a/app/Livewire/ActivityMonitor.php +++ b/app/Livewire/ActivityMonitor.php @@ -13,6 +13,7 @@ class ActivityMonitor extends Component public $activityId; public $eventToDispatch = 'activityFinished'; public $isPollingActive = false; + public bool $fullHeight = false; public bool $showWaiting = false; protected $activity; diff --git a/resources/views/livewire/activity-monitor.blade.php b/resources/views/livewire/activity-monitor.blade.php index 08ed57458..44696f7db 100644 --- a/resources/views/livewire/activity-monitor.blade.php +++ b/resources/views/livewire/activity-monitor.blade.php @@ -9,9 +9,12 @@ @endif @endif -
-
{{ RunRemoteProcess::decodeOutput($this->activity) }}
+
$fullHeight, + 'max-h-96' => !$fullHeight, + ])> +
{{ RunRemoteProcess::decodeOutput($this->activity) }}
@else @if ($showWaiting)