From 3721453d756093e27c2724b817e15d5fd448aa00 Mon Sep 17 00:00:00 2001 From: Troplo Date: Wed, 31 Aug 2022 22:06:04 +1000 Subject: [PATCH] Re-add scrollbars --- frontend/src/assets/styles.css | 45 ++++++------------- frontend/src/components/Message.vue | 2 - .../Communications/CommunicationsChat.vue | 11 ++--- 3 files changed, 19 insertions(+), 39 deletions(-) diff --git a/frontend/src/assets/styles.css b/frontend/src/assets/styles.css index aaafb27..b0d6aae 100644 --- a/frontend/src/assets/styles.css +++ b/frontend/src/assets/styles.css @@ -80,14 +80,6 @@ img.emoji { .v-btn { text-transform: capitalize; } -::-webkit-scrollbar { - display: none; -} - -* { - -ms-overflow-style: none; - scrollbar-width: none; /* Firefox */ -} .troplo-nav { font-family: "Inter", sans-serif; @@ -156,39 +148,28 @@ div .theme--dark.v-calendar-daily .v-calendar-daily__day { border: 1px transparent !important; } -.light::-webkit-scrollbar { - width: 15px !important; -} - -.light::-webkit-scrollbar-track { - background: #e6e6e6 !important; - border-left: 1px solid #dadada !important; -} - -.light::-webkit-scrollbar-thumb { - background: #b0b0b0 !important; - border: solid 3px #e6e6e6 !important; - border-radius: 7px !important; -} - -.light::-webkit-scrollbar-thumb:hover { - background: black !important; -} - ::-webkit-scrollbar { - width: 15px !important; + width: 10px !important; } ::-webkit-scrollbar-track { - background: #151515 !important; + background: transparent !important; } ::-webkit-scrollbar-thumb { - background: #3e3e3e !important; - border: solid 3px #202020 !important; + background: var(--v-text-lighten3) !important; + border: solid 3px var(--v-bg-base) !important; border-radius: 7px !important; } ::-webkit-scrollbar-thumb:hover { - background: white !important; + background: var(--v-text-lighten4) !important; } + +::-webkit-scrollbar-corner { + background-color: var(--v-bg-base); +} + +:root { + overflow-y: auto !important; +} \ No newline at end of file diff --git a/frontend/src/components/Message.vue b/frontend/src/components/Message.vue index 47994fc..6ddec9d 100644 --- a/frontend/src/components/Message.vue +++ b/frontend/src/components/Message.vue @@ -184,8 +184,6 @@ > diff --git a/frontend/src/views/Communications/CommunicationsChat.vue b/frontend/src/views/Communications/CommunicationsChat.vue index dab38ca..4589e7b 100644 --- a/frontend/src/views/Communications/CommunicationsChat.vue +++ b/frontend/src/views/Communications/CommunicationsChat.vue @@ -4,7 +4,7 @@ :position-x="$store.state.context.pins.x" :position-y="60" v-model="$store.state.context.pins.value" - class="rounded-l" + class="rounded-l elevation-7" absolute transition="scroll-y-transition" :close-on-content-click="false" @@ -18,9 +18,9 @@ - + @@ -30,7 +30,7 @@ :key="pin.message.keyId" > - + mdi-close @@ -228,7 +228,8 @@ messages[index - 1]?.createdAt, 'minute' ) < 10 && - !message.replyId + !message.replyId && + !message.type " >