mirror of
https://github.com/immich-app/immich.git
synced 2025-01-07 00:50:23 -05:00
pin fix (#5909)
This commit is contained in:
parent
f602295bf9
commit
2790a46703
1 changed files with 12 additions and 3 deletions
|
@ -167,7 +167,11 @@
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{#if useLocationPin}
|
{#if useLocationPin}
|
||||||
<Icon path={mdiMapMarker} size="60px" class="dark:text-immich-dark-primary text-immich-primary" />
|
<Icon
|
||||||
|
path={mdiMapMarker}
|
||||||
|
size="50px"
|
||||||
|
class="location-pin dark:text-immich-dark-primary text-immich-primary"
|
||||||
|
/>
|
||||||
{:else}
|
{:else}
|
||||||
<img
|
<img
|
||||||
src={api.getAssetThumbnailUrl(feature.properties?.id)}
|
src={api.getAssetThumbnailUrl(feature.properties?.id)}
|
||||||
|
@ -175,13 +179,18 @@
|
||||||
alt={`Image with id ${feature.properties?.id}`}
|
alt={`Image with id ${feature.properties?.id}`}
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if $$slots.popup}
|
{#if $$slots.popup}
|
||||||
<Popup openOn="click" closeOnClickOutside>
|
<Popup offset={[0, -30]} openOn="click" closeOnClickOutside>
|
||||||
<slot name="popup" marker={asMarker(feature)} />
|
<slot name="popup" marker={asMarker(feature)} />
|
||||||
</Popup>
|
</Popup>
|
||||||
{/if}
|
{/if}
|
||||||
</MarkerLayer>
|
</MarkerLayer>
|
||||||
</GeoJSON>
|
</GeoJSON>
|
||||||
</MapLibre>
|
</MapLibre>
|
||||||
|
<style>
|
||||||
|
.location-pin {
|
||||||
|
transform: translate(0, -50%);
|
||||||
|
filter: drop-shadow(0 3px 3px rgb(0 0 0 / 0.3));
|
||||||
|
}
|
||||||
|
</style>
|
||||||
{/await}
|
{/await}
|
||||||
|
|
Loading…
Reference in a new issue