1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-02 03:35:18 +02:00
This commit is contained in:
Sean Morley 2024-06-08 15:33:03 +00:00
parent c58c679d5f
commit 8ca74ab963
2 changed files with 14 additions and 14 deletions

View file

@ -40,18 +40,20 @@
<div
class="card min-w-max lg:w-96 md:w-80 sm:w-60 xs:w-40 bg-primary-content shadow-xl overflow-hidden text-base-content"
>
{#if adventure.imageUrl && adventure.imageUrl.length > 0}
<figure>
<!-- svelte-ignore a11y-img-redundant-alt -->
<img
src={adventure.imageUrl}
src={adventure.imageUrl ||
"https://placehold.co/300?text=No%20Image%20Found&font=roboto"}
alt="No image available"
class="w-full h-48 object-cover"
/>
</figure>
{/if}
<div class="card-body">
<h2 class="card-title overflow-ellipsis">{adventure.name}</h2>
<h2 class="card-title break-words max-w-11 text-wrap">
{adventure.name}
</h2>
{#if adventure.location && adventure.location !== ""}
<div class="inline-flex items-center">
<iconify-icon icon="mdi:map-marker" class="text-xl"></iconify-icon>

View file

@ -213,9 +213,7 @@
<EditModal bind:adventureToEdit on:submit={save} on:close={handleClose} />
{/if}
<div
class="grid xl:grid-cols-3 lg:grid-cols-3 md:grid-cols-2 sm:grid-cols-1 gap-4 mt-4 content-center auto-cols-auto ml-6 mr-6"
>
<div class="flex flex-wrap gap-4 mr-4 ml-4 justify-center content-center">
{#each adventures as adventure (adventure.id)}
<AdventureCard
{adventure}