Skip to content

Commit 80c19f8

Browse files
committed
fix: place view all button at the bottom
1 parent b9dd278 commit 80c19f8

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

resources/views/components/stats/list.blade.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,7 @@
1616
<div class="p-6 min-h-[400px] flex flex-col">
1717
<div class="flex items-center justify-between mb-4">
1818
<h3 class="text-lg font-semibold text-gray-900">{{ $primaryLabel }}</h3>
19-
<div class="flex items-center gap-3">
20-
@if($showViewAll && count($allItems) > 0)
21-
<button
22-
type="button"
23-
onclick="openModal('{{ $modalId }}')"
24-
class="text-xs font-medium text-blue-600 hover:text-blue-800 transition-colors duration-150"
25-
>
26-
View All
27-
</button>
28-
@endif
29-
<span class="text-sm font-medium text-gray-500">{{ $secondaryLabel }}</span>
30-
</div>
19+
<span class="text-sm font-medium text-gray-500">{{ $secondaryLabel }}</span>
3120
</div>
3221
<div class="flex-1 flex flex-col space-y-3">
3322
{{ $slot }}
@@ -37,6 +26,17 @@ class="text-xs font-medium text-blue-600 hover:text-blue-800 transition-colors d
3726
{{ $footer }}
3827
</div>
3928
@endif
29+
@if($showViewAll && count($allItems) > 0)
30+
<div class="mt-4 pt-4 border-t border-gray-100 flex justify-center">
31+
<button
32+
type="button"
33+
onclick="openModal('{{ $modalId }}')"
34+
class="text-xs font-medium text-blue-600 hover:text-blue-800 transition-colors duration-150"
35+
>
36+
View All
37+
</button>
38+
</div>
39+
@endif
4040
</div>
4141

4242
@if($showViewAll && count($allItems) > 0)

0 commit comments

Comments
 (0)