hide expand button if no additional lines to show
This commit is contained in:
		@@ -107,12 +107,14 @@
 | 
			
		||||
                                               class="text-gray-600 dark:text-gray-400 truncate max-w-md underline">
 | 
			
		||||
                                                {{ Str::before($deployment->commitMessage(), "\n") }}
 | 
			
		||||
                                            </a>
 | 
			
		||||
                                            <button @click="expanded = !expanded"
 | 
			
		||||
                                                class="text-gray-600 dark:text-gray-400 flex items-center gap-1">
 | 
			
		||||
                                                <svg x-bind:class="{'rotate-180': expanded}" class="w-4 h-4 transition-transform" viewBox="0 0 24 24">
 | 
			
		||||
                                                    <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m6 9l6 6l6-6"/>
 | 
			
		||||
                                                </svg>
 | 
			
		||||
                                            </button>
 | 
			
		||||
                                            @if ($deployment->commitMessage() !== Str::before($deployment->commitMessage(), "\n"))
 | 
			
		||||
                                                <button @click="expanded = !expanded"
 | 
			
		||||
                                                    class="text-gray-600 dark:text-gray-400 flex items-center gap-1">
 | 
			
		||||
                                                    <svg x-bind:class="{'rotate-180': expanded}" class="w-4 h-4 transition-transform" viewBox="0 0 24 24">
 | 
			
		||||
                                                        <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m6 9l6 6l6-6"/>
 | 
			
		||||
                                                    </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">
 | 
			
		||||
                                                @if (data_get($deployment, 'is_webhook'))
 | 
			
		||||
                                                    Webhook
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user