diff --git a/web/src/lib/components/shared-components/search-bar/search-bar.svelte b/web/src/lib/components/shared-components/search-bar/search-bar.svelte index 5d14d061e7..00f2120cd2 100644 --- a/web/src/lib/components/shared-components/search-bar/search-bar.svelte +++ b/web/src/lib/components/shared-components/search-bar/search-bar.svelte @@ -106,7 +106,9 @@ name="q" class="w-full {grayTheme ? 'dark:bg-immich-dark-gray' - : 'dark:bg-immich-dark-bg'} px-14 py-4 text-immich-fg/75 dark:text-immich-dark-fg {showHistory || showFilter + : 'dark:bg-immich-dark-bg'} px-14 py-4 text-immich-fg/75 dark:text-immich-dark-fg {(showHistory && + $savedSearchTerms.length > 0) || + showFilter ? 'rounded-t-3xl border border-gray-200 bg-white dark:border-gray-800' : 'rounded-3xl border border-transparent bg-gray-200'}" placeholder="Search your photos" @@ -138,7 +140,7 @@ {/if} - {#if showHistory} + {#if showHistory && $savedSearchTerms.length > 0} clearSearchTerm(searchTerm)}