1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-25 15:59:38 +02:00

feat: add GPX file handling and GeoJSON integration in adventure page; update dependencies and AttachmentCard component

This commit is contained in:
Sean Morley 2025-01-20 20:03:00 -05:00
parent 30c58ca118
commit 64d2bdebce
6 changed files with 131 additions and 5 deletions

View file

@ -27,7 +27,7 @@
const isImage = ['.jpg', '.jpeg', '.png', '.gif', '.webp'].some((ext) =>
attachment.file.endsWith(ext)
);
return isImage ? `url(${attachment.file})` : 'url(/path/to/default-placeholder.png)';
return isImage ? `url(${attachment.file})` : '';
}
</script>