feat: improve search experience/autofocus

This commit is contained in:
Xylight committed 2024-10-01 16:54:46 -07:00
1 parent d581884a1e
commit 4f3227a31d
5 files changed
+71 -35

No files matched your search

+4 -1
View File
@@ -231,7 +231,10 @@
"accounts": "Accounts",
"communities": {
"title": "Communities",
"trending": "Trending"
"trending": "Trending",
"search": {
"placeholder": "Search for a new community"
}
},
"search": {
"title": "Search",
+2
View File
@@ -27,6 +27,7 @@
export let id: string = generateID()
export let inlineAffixes: boolean = false
export let shadow: Shadow = 'none'
export let element: HTMLInputElement | undefined = undefined
const borderClass = `
border border-slate-200 border-b-slate-300 dark:border-zinc-900 dark:border-t-zinc-800
@@ -68,6 +69,7 @@
{placeholder}
{disabled}
bind:value
bind:this={element}
on:input
on:change
on:focus