Refactor terminal view: streamline HTML structure and improve readability by removing unnecessary conditional blocks

This commit is contained in:
Andras Bacsai
2025-06-14 12:42:20 +02:00
parent 15472aa0b7
commit 2a419ab8da

View File

@@ -15,13 +15,13 @@
</div>
</div>
</div>
@else
@endif
<div x-ref="terminalWrapper"
:class="fullscreen ? 'fullscreen !bg-black' : 'relative w-full h-full py-4 mx-auto max-h-[510px]'">
<!-- Terminal container -->
<div id="terminal" wire:ignore
:class="fullscreen ? 'px-2 py-1 h-full bg-black' : 'px-2 py-1 rounded-sm bg-black'"
x-show="terminalActive"></div>
:class="fullscreen ? 'px-2 py-1 h-full bg-black' : 'px-2 py-1 rounded-sm bg-black'" x-show="terminalActive">
</div>
<button title="Minimize" x-show="fullscreen" class="fixed bg-black/40 top-4 right-6 text-white"
x-on:click="makeFullscreen"><svg class="w-5 h-5 text-gray-500 hover:text-white bg-black/80"
viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
@@ -39,7 +39,6 @@
</g>
</svg></button>
</div>
@endif
@script
<script>
// expose terminal config to the terminal.js file