Skip to content

Commit a942018

Browse files
committed
fix cart count icon position
1 parent 2c632e3 commit a942018

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

resources/views/components/home-navbar.blade.php

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -97,18 +97,17 @@ class="relative p-2 text-gray-600 hover:text-blue-600 hover:bg-blue-50 rounded-l
9797
</a>
9898

9999
<!-- Shopping Cart -->
100-
<div class="relative">
101-
<a href="{{ route('cart.index') }}"
102-
class="relative p-2 text-gray-600 hover:text-blue-600 hover:bg-blue-50 rounded-lg transition-all duration-200 group"
103-
data-tooltip="Shopping Cart">
104-
<svg class="h-6 w-6 transition-transform group-hover:scale-110" fill="none" stroke="currentColor" viewBox="0 0 24 24">
105-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 3h2l.4 2M7 13h10l4-8H5.4m0 0L7 13m0 0l-2.5 5M7 13l2.5 5m0 0h8"></path>
106-
</svg>
107-
<span class="absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center transform transition-transform group-hover:scale-110">
108-
<livewire:cart-count />
109-
</span>
110-
</a>
111-
</div>
100+
<a href="{{ route('cart.index') }}"
101+
class="relative p-2 text-gray-600 hover:text-blue-600 hover:bg-blue-50 rounded-lg transition-all duration-200 group"
102+
data-tooltip="Shopping Cart">
103+
<svg class="h-6 w-6 transition-transform group-hover:scale-110" fill="none" stroke="currentColor" viewBox="0 0 24 24">
104+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 3h2l.4 2M7 13h10l4-8H5.4m0 0L7 13m0 0l-2.5 5M7 13l2.5 5m0 0h8"></path>
105+
</svg>
106+
<span class="absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center transform transition-transform group-hover:scale-110">
107+
<livewire:cart-count />
108+
</span>
109+
</a>
110+
112111

113112
<!-- User Account -->
114113
@auth

0 commit comments

Comments
 (0)