fix mobile search, reorder menu

This commit is contained in:
2022-12-07 21:29:32 +01:00
parent 01d705f5fb
commit 4a4917e4ed
5 changed files with 22 additions and 20 deletions
+6 -4
View File
@@ -27,11 +27,12 @@ export class UiMain {
locales;
authenticated: boolean = false;
moderator: boolean = false;
searchFocus: boolean = false;
touchThresh: number = 150;
touchStartX: number;
touchX: number;
version = packageJson.version;
constructor(
@@ -105,13 +106,14 @@ export class UiMain {
}
search(text, event) {
if (text) {
this.router.navigate(["search"], { queryParams: { q: text } });
}
event.target.value = '';
event.target.blur();
if (!this.isBiggerScreen()) {
this.close();
}
if (text) {
this.router.navigate(["search"], { queryParams: { q: text } });
}
}
toggleDarkTheme() {