From 4b1b18768dddb35c765cbbe50dca762cdb5f306b Mon Sep 17 00:00:00 2001 From: Michel EDIGHOFFER Date: Fri, 3 Feb 2023 11:40:54 +0100 Subject: [PATCH] feat: use explorer page as search for mobile only (#1301) --- components/main/MainContent.vue | 8 +++++--- components/nav/NavBottom.vue | 5 +---- components/nav/NavSide.vue | 8 ++++---- components/nav/NavTitle.vue | 2 +- components/search/SearchWidget.vue | 8 +++++++- composables/screen.ts | 1 + layouts/default.vue | 6 +++--- pages/[[server]]/explore.vue | 18 ++++++++++++++++-- pages/search.vue | 23 ----------------------- 9 files changed, 38 insertions(+), 41 deletions(-) delete mode 100644 pages/search.vue diff --git a/components/main/MainContent.vue b/components/main/MainContent.vue index 9e5804e4..7695c254 100644 --- a/components/main/MainContent.vue +++ b/components/main/MainContent.vue @@ -4,6 +4,8 @@ defineProps<{ backOnSmallScreen?: boolean /** Show the back button on both small and big screens */ back?: boolean + /** Do not applying overflow hidden to let use floatable components in title */ + noOverflowHidden?: boolean }>() const route = useRoute() @@ -19,7 +21,7 @@ const wideLayout = computed(() => route.meta.wideLayout ?? false) class="native:lg:w-[calc(100vw-5rem)] native:xl:w-[calc(135%+(100vw-1200px)/2)]" >
-
+
route.meta.wideLayout ?? false) >
-
+
-
+
diff --git a/components/nav/NavBottom.vue b/components/nav/NavBottom.vue index 90607dbc..82c99d33 100644 --- a/components/nav/NavBottom.vue +++ b/components/nav/NavBottom.vue @@ -14,7 +14,7 @@ const moreMenuVisible = ref(false)
- +
@@ -28,9 +28,6 @@ const moreMenuVisible = ref(false)
- -
-
diff --git a/components/nav/NavSide.vue b/components/nav/NavSide.vue index d06c4674..4c8879dd 100644 --- a/components/nav/NavSide.vue +++ b/components/nav/NavSide.vue @@ -6,12 +6,12 @@ const { notifications } = useNotifications()