From 70db3ea7597cc59dcdee7fe219319f4eccb9ff03 Mon Sep 17 00:00:00 2001 From: Ayaka Rizumu <464388324@qq.com> Date: Mon, 5 Dec 2022 21:20:23 +0800 Subject: [PATCH] refactor: improve code structure (#343) --- components/modal/ModalDialog.vue | 11 +------ components/nav/NavBottom.vue | 14 ++------- components/nav/NavBottomMoreMenu.vue | 46 ++++++---------------------- unocss.config.ts | 8 +++++ 4 files changed, 20 insertions(+), 59 deletions(-) diff --git a/components/modal/ModalDialog.vue b/components/modal/ModalDialog.vue index 216bc19f..9c911a81 100644 --- a/components/modal/ModalDialog.vue +++ b/components/modal/ModalDialog.vue @@ -129,8 +129,7 @@ export default { :style="{ 'z-index': zIndex, }" - class="scrollbar-hide" - fixed inset-0 overflow-y-auto overscroll-none + fixed inset-0 of-y-auto scrollbar-hide overscroll-none > @@ -189,12 +188,4 @@ export default { padding-bottom: env(safe-area-inset-bottom); padding-left: env(safe-area-inset-left); } - -.scrollbar-hide { - scrollbar-width: none; -} - -.scrollbar-hide::-webkit-scrollbar { - display: none; -} diff --git a/components/nav/NavBottom.vue b/components/nav/NavBottom.vue index efb2e9e8..92109382 100644 --- a/components/nav/NavBottom.vue +++ b/components/nav/NavBottom.vue @@ -6,8 +6,8 @@ const moreMenuVisible = ref(false)