Skip to content

Commit 68b8c04

Browse files
authored
feat: autofocus search input on home page (#171)
1 parent f0e29b6 commit 68b8c04

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)