Search improvements
This commit is contained in:
parent
4ca21faa7e
commit
6bf619a304
@ -6,8 +6,8 @@ import (
|
||||
"github.com/animenotifier/notify.moe/components"
|
||||
)
|
||||
|
||||
const maxUsers = 36
|
||||
const maxAnime = 26
|
||||
const maxUsers = 25
|
||||
const maxAnime = 25
|
||||
const maxPosts = 3
|
||||
const maxThreads = 3
|
||||
|
||||
|
@ -24,3 +24,4 @@
|
||||
|
||||
.no-search-results
|
||||
text-align left
|
||||
padding-bottom typography-margin
|
@ -8,8 +8,8 @@ export function search(arn: AnimeNotifier, search: HTMLInputElement, e: Keyboard
|
||||
|
||||
let term = search.value
|
||||
|
||||
if(!term || term.length < 2) {
|
||||
arn.app.content.innerHTML = "Please enter at least 2 characters to start searching."
|
||||
if(!term || term.length < 1) {
|
||||
arn.app.content.innerHTML = "Please enter at least 1 character to start searching."
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user