fix dropdown fitur

This commit is contained in:
Farhaan4 2025-09-15 16:54:20 +07:00
parent eaea6bc516
commit 0f75a7afa5

View File

@ -13,7 +13,7 @@
<div v-if="isLoading" class="text-center py-10"><p>Memuat template...</p></div> <div v-if="isLoading" class="text-center py-10"><p>Memuat template...</p></div>
<div v-else-if="error" class="text-center py-10 text-red-600"><p>Gagal memuat template.</p></div> <div v-else-if="error" class="text-center py-10 text-red-600"><p>Gagal memuat template.</p></div>
<div v-else-if="templates && templates.length > 0" class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8"> <div v-else-if="templates && templates.length > 0" class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8 items-start">
<div v-for="tpl in templates" :key="tpl.id" class="bg-white border rounded-lg overflow-hidden shadow-md hover:shadow-xl transition-shadow duration-300"> <div v-for="tpl in templates" :key="tpl.id" class="bg-white border rounded-lg overflow-hidden shadow-md hover:shadow-xl transition-shadow duration-300">
<img :src="`http://localhost:8000${tpl.foto}`" :alt="tpl.nama" class="w-full h-48 object-cover"> <img :src="`http://localhost:8000${tpl.foto}`" :alt="tpl.nama" class="w-full h-48 object-cover">