forked from MapComplete/MapComplete
UX: fix image carousel in comparisonTable
This commit is contained in:
parent
b2915bdc4d
commit
74618c2282
1 changed files with 12 additions and 11 deletions
|
@ -128,17 +128,18 @@
|
||||||
|
|
||||||
{#if $unknownImages.length > 0}
|
{#if $unknownImages.length > 0}
|
||||||
{#if readonly}
|
{#if readonly}
|
||||||
<div class="w-full overflow-x-auto">
|
<div class="flex w-full space-x-2 overflow-x-auto border border-gray-600 p-1"
|
||||||
<div class="flex h-32 w-max gap-x-2">
|
style="scroll-snap-type: x proximity; border: 1px solid black">
|
||||||
{#each $unknownImages as image (image)}
|
{#each $unknownImages as image (image)}
|
||||||
<AttributedImage
|
<div class="relative flex w-fit items-center bg-gray-200">
|
||||||
{state}
|
<AttributedImage
|
||||||
imgClass="h-32 w-max shrink-0"
|
{state}
|
||||||
image={{ url: image }}
|
imgClass="h-32 shrink-0"
|
||||||
previewedImage={state.previewedImage}
|
image={{ url: image }}
|
||||||
/>
|
previewedImage={state.previewedImage}
|
||||||
{/each}
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
{#each $unknownImages as image (image)}
|
{#each $unknownImages as image (image)}
|
||||||
|
|
Loading…
Reference in a new issue