Refactor ActivityMonitor component to add max height option

This commit is contained in:
Andras Bacsai
2024-04-16 13:14:09 +02:00
parent 92ee2be021
commit f0ad260eab
3 changed files with 175 additions and 170 deletions

View File

@@ -11,7 +11,7 @@
@endif
<div @class([
'flex flex-col-reverse w-full px-4 py-2 overflow-y-auto bg-white border border-solid rounded dark:text-white dark:bg-coolgray-100 scrollbar border-neutral-300 dark:border-coolgray-300',
'h-full' => $fullHeight,
'max-h-[48rem]' => $fullHeight,
'max-h-96' => !$fullHeight,
])>
<pre class="max-h-screen font-mono whitespace-pre-wrap" @if ($isPollingActive) wire:poll.1000ms="polling" @endif>{{ RunRemoteProcess::decodeOutput($this->activity) }}</pre>