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)}
 | 
				
			||||||
 | 
					            <div class="relative flex w-fit items-center bg-gray-200">
 | 
				
			||||||
              <AttributedImage
 | 
					              <AttributedImage
 | 
				
			||||||
                {state}
 | 
					                {state}
 | 
				
			||||||
              imgClass="h-32 w-max shrink-0"
 | 
					                imgClass="h-32 shrink-0"
 | 
				
			||||||
                image={{ url: image }}
 | 
					                image={{ url: image }}
 | 
				
			||||||
                previewedImage={state.previewedImage}
 | 
					                previewedImage={state.previewedImage}
 | 
				
			||||||
              />
 | 
					              />
 | 
				
			||||||
          {/each}
 | 
					 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
 | 
					        {/each}
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
    {:else}
 | 
					    {:else}
 | 
				
			||||||
      {#each $unknownImages as image (image)}
 | 
					      {#each $unknownImages as image (image)}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue