Skip to content

Commit 6c27312

Browse files
authored
feat: autofocus search input on home page (#171)
1 parent f63b7b7 commit 6c27312

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/pages/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ defineOgImageComponent('Default')
6868
name="q"
6969
:placeholder="$t('search.placeholder')"
7070
autocomplete="off"
71+
autofocus
7172
class="w-full bg-bg-subtle border border-border rounded-lg pl-8 pr-24 py-4 font-mono text-base text-fg placeholder:text-fg-subtle transition-all duration-300 focus:(border-border-hover outline-none)"
7273
@input="handleSearch"
7374
@focus="isSearchFocused = true"

0 commit comments

Comments
 (0)