From 90dc6070c761d155023a27dd516c8706546cae26 Mon Sep 17 00:00:00 2001 From: James Lyne Date: Sat, 12 Dec 2020 19:06:25 +0000 Subject: [PATCH] Fix sidebar stealing clicks --- src/components/Sidebar.vue | 9 +++++++++ src/scss/style.scss | 21 +-------------------- 2 files changed, 10 insertions(+), 20 deletions(-) diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index 2d2e53e..43de790 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -57,6 +57,13 @@ export default defineComponent({ padding: 1rem; width: 23rem; will-change: transform; + pointer-events: none; + + ul, ol, li { + padding: 0; + list-style: none; + margin: 0; + } .sidebar__buttons { display: flex; @@ -64,6 +71,7 @@ export default defineComponent({ align-items: center; justify-content: flex-end; margin-bottom: 1rem; + pointer-events: auto; button { width: 5rem; @@ -91,6 +99,7 @@ export default defineComponent({ flex: 0 1 auto; min-height: 15vh; margin-bottom: 1rem; + pointer-events: auto; &:last-child { margin-bottom: 0; diff --git a/src/scss/style.scss b/src/scss/style.scss index fa6b053..c7f525e 100644 --- a/src/scss/style.scss +++ b/src/scss/style.scss @@ -127,26 +127,7 @@ button { padding: 8px; } - -/******************* - * shared rules - */ - -.dynmap ul, .dynmap li { - list-style: none; - - padding: 0; - margin: 0; -} - -.maplist li a, -.playerlist li a { - outline: none; - text-decoration: none; -} - -.alertbox, -.largeclock { +.alertbox { border-style: solid; border-width: 0 1px 1px 1px;