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

@@ -39,6 +39,10 @@
let lightbox: PhotoSwipeLightbox;
let lightboxDataSource: DataSource;
const thumbnail = $trail.photos.length
? getFileURL(trail, $trail.photos[$trail.thumbnail])
: "/imgs/default_thumbnail.webp";
onMount(async () => {
const L = (await import("leaflet")).default;
await import("leaflet-gpx");
@@ -134,7 +138,7 @@
<section class="relative h-80">
<img
class="w-full h-80"
src={getFileURL($trail, $trail.photos[$trail.thumbnail])}
src={thumbnail}
alt=""
/>
<div