forked from MapComplete/MapComplete
Fix: remove duplicate actiosn
This commit is contained in:
parent
ce5a887b6c
commit
a1711c256b
2 changed files with 12 additions and 2 deletions
|
@ -119,7 +119,16 @@
|
|||
<div style="height: 80vh">
|
||||
<ImageOperations {image} {nearbyFeatures}>
|
||||
<slot name="preview-action" />
|
||||
<slot name="dot-menu-actions" slot="dot-menu-actions" />
|
||||
<svelte:fragment slot="dot-menu-actions">
|
||||
<slot name="dot-menu-actions" />
|
||||
{#if visitUrl !== undefined}
|
||||
<a href={visitUrl} target="_blank" rel="noopener">
|
||||
<ExternalLinkIcon class="w-6" />
|
||||
<Tr t={Translations.t.image.openOnWebsite.Subs(image.provider)} />
|
||||
</a>
|
||||
{/if}
|
||||
</svelte:fragment>
|
||||
|
||||
</ImageOperations>
|
||||
</div>
|
||||
<div class="absolute right-4 top-4">
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
|
||||
{#if $$slots["dot-menu-actions"]}
|
||||
<DotMenu dotsPosition="top-0 left-0" dotsSize="w-8 h-8" hideBackground>
|
||||
<slot name="dot-menu-actions" />
|
||||
<slot name="dot-menu-actions">
|
||||
<button
|
||||
class="no-image-background pointer-events-auto flex items-center"
|
||||
on:click={() => ImageProvider.offerImageAsDownload(image)}
|
||||
|
@ -54,6 +54,7 @@
|
|||
<Tr t={Translations.t.image.openOnWebsite.Subs(image.provider)} />
|
||||
</a>
|
||||
{/if}
|
||||
</slot>
|
||||
</DotMenu>
|
||||
{/if}
|
||||
<div
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue