Usertesting: resolve some issues surfaced in #1457

This commit is contained in:
Pieter Vander Vennet 2023-06-14 01:03:28 +02:00
parent d465a272f2
commit 983db5e600
5 changed files with 5 additions and 5 deletions

View file

@ -19,7 +19,7 @@ export default class IndexText extends Combine {
),
Translations.t.index.pickTheme.SetClass(
"mt-3 text-base text-green-600 sm:mt-5 sm:text-lg sm:max-w-xl sm:mx-auto md:mt-5 md:text-xl lg:mx-0"
"mt-3 text-base sm:mt-5 sm:text-lg sm:max-w-xl sm:mx-auto md:mt-5 md:text-xl lg:mx-0"
),
]).SetClass("flex flex-col sm:text-center lg:text-left m-1 mt-2 md:m-2 md:mt-4"),
])

View file

@ -29,6 +29,9 @@ export default class MoreScreen extends Combine {
})
search.enterPressed.addCallbackD((searchTerm) => {
searchTerm = searchTerm.toLowerCase()
if(!searchTerm){
return
}
if (searchTerm === "personal") {
window.location.href = MoreScreen.createUrlFor(
{ id: "personal" },