mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-04 03:27:09 -05:00 
			
		
		
		
	fix(web): prevent scroll reset on search page (#7385)
This commit is contained in:
		
							parent
							
								
									6ec4c5874b
								
							
						
					
					
						commit
						9d3ed719e0
					
				@ -290,11 +290,7 @@
 | 
				
			|||||||
      </section>
 | 
					      </section>
 | 
				
			||||||
    {/if}
 | 
					    {/if}
 | 
				
			||||||
    <section id="search-content" class="relative bg-immich-bg dark:bg-immich-dark-bg">
 | 
					    <section id="search-content" class="relative bg-immich-bg dark:bg-immich-dark-bg">
 | 
				
			||||||
      {#if isLoading}
 | 
					      {#if searchResultAssets.length > 0}
 | 
				
			||||||
        <div class="flex justify-center py-16 items-center">
 | 
					 | 
				
			||||||
          <LoadingSpinner size="48" />
 | 
					 | 
				
			||||||
        </div>
 | 
					 | 
				
			||||||
      {:else if searchResultAssets.length > 0}
 | 
					 | 
				
			||||||
        <GalleryViewer
 | 
					        <GalleryViewer
 | 
				
			||||||
          assets={searchResultAssets}
 | 
					          assets={searchResultAssets}
 | 
				
			||||||
          bind:selectedAssets
 | 
					          bind:selectedAssets
 | 
				
			||||||
@ -302,7 +298,7 @@
 | 
				
			|||||||
          showArchiveIcon={true}
 | 
					          showArchiveIcon={true}
 | 
				
			||||||
          {viewport}
 | 
					          {viewport}
 | 
				
			||||||
        />
 | 
					        />
 | 
				
			||||||
      {:else}
 | 
					      {:else if !isLoading}
 | 
				
			||||||
        <div class="flex min-h-[calc(66vh_-_11rem)] w-full place-content-center items-center dark:text-white">
 | 
					        <div class="flex min-h-[calc(66vh_-_11rem)] w-full place-content-center items-center dark:text-white">
 | 
				
			||||||
          <div class="flex flex-col content-center items-center text-center">
 | 
					          <div class="flex flex-col content-center items-center text-center">
 | 
				
			||||||
            <Icon path={mdiImageOffOutline} size="3.5em" />
 | 
					            <Icon path={mdiImageOffOutline} size="3.5em" />
 | 
				
			||||||
@ -311,6 +307,12 @@
 | 
				
			|||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
      {/if}
 | 
					      {/if}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      {#if isLoading}
 | 
				
			||||||
 | 
					        <div class="flex justify-center py-16 items-center">
 | 
				
			||||||
 | 
					          <LoadingSpinner size="48" />
 | 
				
			||||||
 | 
					        </div>
 | 
				
			||||||
 | 
					      {/if}
 | 
				
			||||||
    </section>
 | 
					    </section>
 | 
				
			||||||
  </section>
 | 
					  </section>
 | 
				
			||||||
</section>
 | 
					</section>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user