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