File tree Expand file tree Collapse file tree 1 file changed +4
-17
lines changed
Expand file tree Collapse file tree 1 file changed +4
-17
lines changed Original file line number Diff line number Diff line change 11<script setup lang="ts">
2- import { debounce } from ' perfect-debounce'
32import { normalizeSearchParam } from ' #shared/utils/url'
43
54withDefaults (
@@ -15,7 +14,6 @@ const emit = defineEmits(['blur', 'focus'])
1514
1615const router = useRouter ()
1716const route = useRoute ()
18- const { isAlgolia } = useSearchProvider ()
1917
2018const isSearchFocused = shallowRef (false )
2119
@@ -107,24 +105,13 @@ defineExpose({ focus })
107105 <div class =" relative group" :class =" { 'is-focused': isSearchFocused }" >
108106 <div class =" search-box relative flex items-center" >
109107 <span
110- class =" absolute inset-is-3 text-fg-subtle font-mono text-sm pointer-events-none transition-colors duration-200 motion-reduce:transition-none [.group:hover:not(:focus-within)_& ]:text-fg/80 group-focus-within:text-accent z-1"
111- >
108+ class =" absolute inset-is-3 text-fg-subtle font-mono text-sm pointer-events-none transition-colors duration-200 motion-reduce:transition-none [.group:hover:not(:focus-within)_& ]:text-fg/80 group-focus-within:text-accent z-1" >
112109 /
113110 </span >
114111
115- <InputBase
116- id =" header-search"
117- ref =" inputRef"
118- v-model =" searchQuery"
119- type =" search"
120- name =" q"
121- :placeholder =" $t('search.placeholder')"
122- no-correct
123- class =" w-full min-w-25 ps-7"
124- @focus =" isSearchFocused = true"
125- @blur =" isSearchFocused = false"
126- size =" small"
127- />
112+ <InputBase id =" header-search" ref =" inputRef" v-model =" searchQuery" type =" search" name =" q"
113+ :placeholder =" $t('search.placeholder')" no-correct class =" w-full min-w-25 ps-7"
114+ @focus =" isSearchFocused = true" @blur =" isSearchFocused = false" size =" small" />
128115 <button type =" submit" class =" sr-only" >{{ $t('search.button') }}</button >
129116 </div >
130117 </div >
You can’t perform that action at this time.
0 commit comments