From 349a8e0199893b2a8ee2bb4a69e35e2eea92d1cc Mon Sep 17 00:00:00 2001 From: Hakadao Date: Wed, 25 Jan 2023 01:53:11 +0800 Subject: [PATCH] update: implement responsive design --- src/components/Topbar/Topbar.vue | 234 ++++++++++++++---------- src/components/Topbar/TopbarMorePop.vue | 44 +++++ src/contentScripts/views/App.vue | 40 ++-- src/styles/reset.scss | 9 +- 4 files changed, 210 insertions(+), 117 deletions(-) create mode 100644 src/components/Topbar/TopbarMorePop.vue diff --git a/src/components/Topbar/Topbar.vue b/src/components/Topbar/Topbar.vue index 528fc78b..87427011 100644 --- a/src/components/Topbar/Topbar.vue +++ b/src/components/Topbar/Topbar.vue @@ -17,6 +17,7 @@ const props = withDefaults(defineProps(), { const { t } = useI18n() const mid = getUserID() || '' const userInfo = reactive({}) as UnwrapNestedRefs + const showChannelsPop = ref(false) const showUserPanelPop = ref(false) const showTopbarMask = ref(false) @@ -25,6 +26,8 @@ const showMomentsPop = ref(false) const showFavoritesPop = ref(false) const showUploadPop = ref(false) const showHistoryPop = ref(false) +const showMorePop = ref(false) + const isLogin = ref(!!getUserID()) const unReadMessage = reactive( {}, @@ -160,7 +163,7 @@ function getNewMomentsCount() { flex="~" justify="between" align="items-center" - p="lg:x-23 @@ -170,7 +173,7 @@ function getNewMomentsCount() { w="full" h="160px" opacity="100" - pointer="none" + pointer-events-none style="background: linear-gradient(var(--bew-bg), transparent)" /> @@ -216,14 +219,6 @@ function getNewMomentsCount() {
-
@@ -237,6 +232,7 @@ function getNewMomentsCount() {