Skip to content

Commit 08f088b

Browse files
committed
fix
1 parent 3c715cf commit 08f088b

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

app/components/Header/SearchBox.vue

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<script setup lang="ts">
2-
import { debounce } from 'perfect-debounce'
32
import { normalizeSearchParam } from '#shared/utils/url'
43
54
withDefaults(
@@ -15,7 +14,6 @@ const emit = defineEmits(['blur', 'focus'])
1514
1615
const router = useRouter()
1716
const route = useRoute()
18-
const { isAlgolia } = useSearchProvider()
1917
2018
const 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>

0 commit comments

Comments
 (0)