Refactoring: use popups for attributed images

This commit is contained in:
Pieter Vander Vennet 2024-09-04 01:50:34 +02:00
parent f026ee6db9
commit 7565f13e39
7 changed files with 129 additions and 85 deletions

View file

@ -72,7 +72,19 @@
imgClass="max-h-64 w-auto"
previewedImage={state.previewedImage}
attributionFormat="minimal"
/>
>
<!--
<div slot="preview-action" class="self-center" >
<LoginToggle {state} silentFail={true}>
{#if linkable}
<label class="normal-background p-2 rounded-full pointer-events-auto">
<input bind:checked={$isLinked} type="checkbox" />
<SpecialTranslation t={t.link} {tags} {state} {layer} {feature} />
</label>
{/if}
</LoginToggle>
</div>-->
</AttributedImage>
<LoginToggle {state} silentFail={true}>
{#if linkable}
<label>