generated from boboko/starter
removed search from category filters and fixed product links
This commit is contained in:
@@ -5,9 +5,14 @@
|
||||
'href' => '#',
|
||||
])
|
||||
|
||||
{{-- data-turbo-frame="_top" on the links: this card renders inside the
|
||||
category page's <turbo-frame id="category-listing">, so without it a click
|
||||
would try to load the product page *into* that frame, not find a matching
|
||||
frame, and fail with "content missing". It's a no-op anywhere there's no
|
||||
frame (homepage grids, related products). --}}
|
||||
<div class="group">
|
||||
<div class="relative flex items-center justify-center mb-4">
|
||||
<a href="{{ $href }}" class="block w-full border border-black overflow-hidden bg-white aspect-[251/335] flex items-center justify-center">
|
||||
<a href="{{ $href }}" data-turbo-frame="_top" class="block w-full border border-black overflow-hidden bg-white aspect-[251/335] flex items-center justify-center">
|
||||
@if($image)
|
||||
<img
|
||||
src="{{ $image }}"
|
||||
@@ -28,7 +33,7 @@ class="w-full h-auto block"
|
||||
</div>
|
||||
|
||||
<div class="flex items-baseline justify-between gap-4">
|
||||
<a href="{{ $href }}" class="font-bold text-xl leading-snug hover:text-brand">{{ $name }}</a>
|
||||
<a href="{{ $href }}" data-turbo-frame="_top" class="font-bold text-xl leading-snug hover:text-brand">{{ $name }}</a>
|
||||
@if($price !== null)
|
||||
<span class="font-bold text-xl shrink-0"><x-ui.price :amount="$price" /></span>
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user