adds new default state images

This commit is contained in:
Christian Beutel
2024-03-11 00:08:02 +01:00
parent a2819f3b45
commit 02c82d3e46
25 changed files with 191 additions and 98 deletions

View File

@@ -8,6 +8,10 @@
} from "$lib/util/format_util";
export let trail: Trail;
$: thumbnail = trail.photos.length
? getFileURL(trail, trail.photos[trail.thumbnail])
: "/imgs/default_thumbnail.webp";
</script>
<div
@@ -17,7 +21,7 @@
role="listitem"
>
<div class="w-full min-h-40 max-h-48 overflow-hidden rounded-t-2xl">
<img src={getFileURL(trail, trail.photos[trail.thumbnail])} alt="" />
<img src={thumbnail} alt="" />
</div>
<div class="p-4">
<div>