Merge pull request #4942 from ari-party/main

fix: hide expand button if no additional lines to show
This commit is contained in:
Andras Bacsai
2025-01-28 10:54:43 +01:00
committed by GitHub

View File

@@ -107,12 +107,14 @@
class="text-gray-600 dark:text-gray-400 truncate max-w-md underline"> class="text-gray-600 dark:text-gray-400 truncate max-w-md underline">
{{ Str::before($deployment->commitMessage(), "\n") }} {{ Str::before($deployment->commitMessage(), "\n") }}
</a> </a>
<button @click="expanded = !expanded" @if ($deployment->commitMessage() !== Str::before($deployment->commitMessage(), "\n"))
class="text-gray-600 dark:text-gray-400 flex items-center gap-1"> <button @click="expanded = !expanded"
<svg x-bind:class="{'rotate-180': expanded}" class="w-4 h-4 transition-transform" viewBox="0 0 24 24"> class="text-gray-600 dark:text-gray-400 flex items-center gap-1">
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m6 9l6 6l6-6"/> <svg x-bind:class="{'rotate-180': expanded}" class="w-4 h-4 transition-transform" viewBox="0 0 24 24">
</svg> <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m6 9l6 6l6-6"/>
</button> </svg>
</button>
@endif
<span class="bg-gray-200/70 dark:bg-gray-600/20 px-2 py-0.5 rounded-md text-xs text-gray-800 dark:text-gray-100 border border-gray-400/30"> <span class="bg-gray-200/70 dark:bg-gray-600/20 px-2 py-0.5 rounded-md text-xs text-gray-800 dark:text-gray-100 border border-gray-400/30">
@if (data_get($deployment, 'is_webhook')) @if (data_get($deployment, 'is_webhook'))
Webhook Webhook