From 95ef60628cd9c220b8c2e2fa1156dbd976cbec6a Mon Sep 17 00:00:00 2001 From: Vogeluff <72712390+Vogeluff@users.noreply.github.com> Date: Fri, 3 Apr 2026 17:37:03 +0200 Subject: [PATCH] fix(web): always show search type button (#27043) * fix(web): always show search type button * fix(web): formatting fixes * fix(web): search-type-button inactive styling outline/secondary * chore: styling --------- Co-authored-by: Alex Tran --- .../search-bar/search-bar.svelte | 72 ++++++++++--------- 1 file changed, 38 insertions(+), 34 deletions(-) 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 a5fae6c3f3..891331eaed 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 @@ -184,6 +184,7 @@ localStorage.setItem('searchQueryType', type); currentSearchType = type; showSearchTypeDropdown = false; + input?.focus(); }; const onsubmit = (event: Event) => { @@ -306,43 +307,46 @@ /> - {#if searchStore.isSearchEnabled} -
0} - > -
- +
0} + > +
+ - {#if showSearchTypeDropdown} -
- {#each searchTypes as searchType (searchType.value)} - - {/each} -
- {/if} -
+ onclick={() => selectSearchType(searchType.value)} + > + {searchType.label()} + + {/each} +
+ {/if}
- {/if} +
{#if showClearIcon}