fix mobile search, reorder menu
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user