Compare commits
3 Commits
feature/fi
...
hotfix/fix
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
905580ca1d | ||
|
|
39ab10759b | ||
|
|
5f99fba396 |
@@ -396,7 +396,10 @@
|
||||
<template x-for="(image, index) in images" :key="image.id || index">
|
||||
<div class="relative group cursor-move border-2 border-base-300 rounded-lg overflow-hidden hover:border-primary transition-colors bg-base-200"
|
||||
:data-id="image.id">
|
||||
<img :src="'/storage/' + image.path" alt="Product image" class="w-full h-40 object-cover" @@error="$event.target.src='/images/placeholder.png'">
|
||||
<img :src="'/storage/' + image.path" alt="Product image" class="w-full h-40 object-cover" @error="$event.target.style.display='none'; $event.target.nextElementSibling.style.display='flex';">
|
||||
<div class="hidden items-center justify-center h-40 bg-base-200">
|
||||
<span class="icon-[lucide--image] size-16 text-base-content/40"></span>
|
||||
</div>
|
||||
<div class="absolute top-2 left-2">
|
||||
<span class="badge badge-sm" :class="index === 0 ? 'badge-primary' : 'badge-ghost badge-outline'" x-text="index === 0 ? 'Primary' : (index + 1)"></span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user