From b36656a925b30ce5c85a78d6ae3b686917895822 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Tue, 16 Aug 2022 18:21:57 +0530 Subject: [PATCH] fix(theme): set pointer events all on VPNavScreen (#1182) --- src/client/theme-default/components/VPNavBar.vue | 8 ++++---- src/client/theme-default/components/VPNavScreen.vue | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/client/theme-default/components/VPNavBar.vue b/src/client/theme-default/components/VPNavBar.vue index fbcd157c0289..908eb50cd8a8 100644 --- a/src/client/theme-default/components/VPNavBar.vue +++ b/src/client/theme-default/components/VPNavBar.vue @@ -57,10 +57,6 @@ const { hasSidebar } = useSidebar() pointer-events: none; } -.VPNavBar .container:deep(*) { - pointer-events: all; -} - @media (min-width: 768px) { .VPNavBar { padding: 0 32px; @@ -104,6 +100,10 @@ const { hasSidebar } = useSidebar() pointer-events: none; } +.container :deep(*) { + pointer-events: all; +} + .content { display: flex; justify-content: flex-end; diff --git a/src/client/theme-default/components/VPNavScreen.vue b/src/client/theme-default/components/VPNavScreen.vue index 67972f468eed..040030334b15 100644 --- a/src/client/theme-default/components/VPNavScreen.vue +++ b/src/client/theme-default/components/VPNavScreen.vue @@ -52,6 +52,7 @@ function unlockBodyScroll() { background-color: var(--vp-c-bg); overflow-y: auto; transition: background-color 0.5s; + pointer-events: all; } .VPNavScreen.fade-enter-active,