Skip to content

Commit e014dc2

Browse files
committed
fix: remove padding when showAsLink with contained(false)
When using showAsLink(true) with contained(false), padding is now p-0 instead of p-3 to align with other infolist entries on the same line
1 parent fa33459 commit e014dc2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎resources/views/infolists/components/file-view-entry.blade.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,9 @@ class="mt-3 inline-flex w-full justify-center rounded-md bg-white dark:bg-gray-8
282282
href="{{ $fileUrl }}"
283283
target="_blank"
284284
@class([
285-
'group flex items-center gap-3 p-3 rounded-lg transition-all',
286-
'bg-gray-50 dark:bg-gray-800 hover:bg-primary-50 dark:hover:bg-primary-900/20 border border-gray-200 dark:border-gray-700 hover:border-primary-200 dark:hover:border-primary-800' => $contained,
287-
'hover:text-primary-500' => !$contained,
285+
'group flex items-center gap-3 rounded-lg transition-all',
286+
'p-3 bg-gray-50 dark:bg-gray-800 hover:bg-primary-50 dark:hover:bg-primary-900/20 border border-gray-200 dark:border-gray-700 hover:border-primary-200 dark:hover:border-primary-800' => $contained,
287+
'p-0 hover:text-primary-500' => !$contained,
288288
])
289289

290290
>

0 commit comments

Comments
 (0)