1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-27 16:59:37 +02:00

fix: Display adventure category icon also on collection maps

This commit is contained in:
Lars Lehmann 2025-01-23 20:07:16 +01:00
parent 12a6429812
commit 9e66c67c62
No known key found for this signature in database
GPG key ID: BC832CCD9A8BAE4D
2 changed files with 4504 additions and 2 deletions

4499
frontend/package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -833,14 +833,17 @@
> >
{#each adventures as adventure} {#each adventures as adventure}
{#if adventure.longitude && adventure.latitude} {#if adventure.longitude && adventure.latitude}
<DefaultMarker lngLat={{ lng: adventure.longitude, lat: adventure.latitude }}> <Marker lngLat={{ lng: adventure.longitude, lat: adventure.latitude }}>
<span class="text-xl">
{adventure.category?.icon}
</span>
<Popup openOn="click" offset={[0, -10]}> <Popup openOn="click" offset={[0, -10]}>
<div class="text-lg text-black font-bold">{adventure.name}</div> <div class="text-lg text-black font-bold">{adventure.name}</div>
<p class="font-semibold text-black text-md"> <p class="font-semibold text-black text-md">
{adventure.category?.display_name + ' ' + adventure.category?.icon} {adventure.category?.display_name + ' ' + adventure.category?.icon}
</p> </p>
</Popup> </Popup>
</DefaultMarker> </Marker>
{/if} {/if}
{/each} {/each}
{#each transportations as transportation} {#each transportations as transportation}