From 9acaf7b03a657a05e4a7bb5eb7cf6a3b3e4a4682 Mon Sep 17 00:00:00 2001 From: Michel EDIGHOFFER Date: Fri, 10 Feb 2023 20:06:01 +0100 Subject: [PATCH] fix: restore search page for mobile next step: show search bar on title without rediction --- components/nav/NavBottom.vue | 2 +- pages/[[server]]/explore.vue | 16 +--------------- pages/search.vue | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 16 deletions(-) create mode 100644 pages/search.vue diff --git a/components/nav/NavBottom.vue b/components/nav/NavBottom.vue index 82c99d33..97454860 100644 --- a/components/nav/NavBottom.vue +++ b/components/nav/NavBottom.vue @@ -14,7 +14,7 @@ const moreMenuVisible = ref(false)
- +
diff --git a/pages/[[server]]/explore.vue b/pages/[[server]]/explore.vue index ae761cea..9d4679f9 100644 --- a/pages/[[server]]/explore.vue +++ b/pages/[[server]]/explore.vue @@ -3,17 +3,6 @@ import type { CommonRouteTabOption } from '~/components/common/CommonRouteTabs.v const { t } = useI18n() -const search = $ref<{ input?: HTMLInputElement }>() -const route = useRoute() -watchEffect(() => { - if (isMediumOrLargeScreen && route.name === 'explore' && search?.input) - search?.input?.focus() -}) -onActivated(() => - search?.input?.focus(), -) -onDeactivated(() => search?.input?.blur()) - const tabs = $computed(() => [ { to: isHydrated.value ? `/${currentServer.value}/explore` : '/explore', @@ -38,15 +27,12 @@ const tabs = $computed(() => [