Search improvements

This commit is contained in:
Eduard Urbach 2017-11-07 13:48:33 +01:00
parent 4ca21faa7e
commit 6bf619a304
3 changed files with 6 additions and 5 deletions

View File

@ -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

View File

@ -23,4 +23,5 @@
opacity 0.8
.no-search-results
text-align left
text-align left
padding-bottom typography-margin

View File

@ -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
}