mirror of
https://github.com/immich-app/immich.git
synced 2024-12-25 10:43:13 +02:00
fix(web): show history search box only when needed (#7544)
show history search box only when needed
This commit is contained in:
parent
b63b42d3d7
commit
db455060f0
@ -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}
|
||||
|
||||
<!-- SEARCH HISTORY BOX -->
|
||||
{#if showHistory}
|
||||
{#if showHistory && $savedSearchTerms.length > 0}
|
||||
<SearchHistoryBox
|
||||
on:clearAllSearchTerms={clearAllSearchTerms}
|
||||
on:clearSearchTerm={({ detail: searchTerm }) => clearSearchTerm(searchTerm)}
|
||||
|
Loading…
Reference in New Issue
Block a user