High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(web): prevent scroll reset on search page (#7385)
Michel Heusschen9d3ed719e0ee
diff --git a/web/src/routes/(user)/search/+page.svelte b/web/src/routes/(user)/search/+page.svelteindex 3d52ee04f2..bda74db788 100644--- a/web/src/routes/(user)/search/+page.svelte+++ b/web/src/routes/(user)/search/+page.svelte@@ -290,11 +290,7 @@</section>{/if}<section id="search-content" class="relative bg-immich-bg dark:bg-immich-dark-bg">- {#if isLoading}- <div class="flex justify-center py-16 items-center">- <LoadingSpinner size="48" />- </div>- {:else if searchResultAssets.length > 0}+ {#if searchResultAssets.length > 0}<GalleryViewerassets={searchResultAssets}bind:selectedAssets@@ -302,7 +298,7 @@showArchiveIcon={true}{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 flex-col content-center items-center text-center"><Icon path={mdiImageOffOutline} size="3.5em" />@@ -311,6 +307,12 @@</div></div>{/if}++ {#if isLoading}+ <div class="flex justify-center py-16 items-center">+ <LoadingSpinner size="48" />+ </div>+ {/if}</section></section></section>