Skip to content

Commit

Permalink
Re-add scrollbars
Browse files Browse the repository at this point in the history
  • Loading branch information
Troplo committed Aug 31, 2022
1 parent d6f64de commit 3721453
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 39 deletions.
45 changes: 13 additions & 32 deletions frontend/src/assets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
2 changes: 0 additions & 2 deletions frontend/src/components/Message.vue
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,6 @@
>
<v-progress-circular
indeterminate
width="500"
height="500"
color="grey lighten-5"
></v-progress-circular>
</v-row>
Expand Down
11 changes: 6 additions & 5 deletions frontend/src/views/Communications/CommunicationsChat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -18,9 +18,9 @@
</v-toolbar>
<v-divider></v-divider>
<v-container>
<v-list dense v-if="pins.length">
<v-list dense v-if="pins.length" :max-height="600">
<v-list-item
@click.self="jumpToMessage(pin.message.id)"
@click="jumpToMessage(pin.message.id)"
v-for="(pin, index) in pins"
:key="index"
>
Expand All @@ -30,7 +30,7 @@
:key="pin.message.keyId"
></SimpleMessage>
<v-spacer></v-spacer>
<v-btn icon text @click="removePin(pin.messageId)">
<v-btn icon text @click.stop="removePin(pin.messageId)">
<v-icon> mdi-close </v-icon>
</v-btn>
</v-list-item>
Expand Down Expand Up @@ -228,7 +228,8 @@
messages[index - 1]?.createdAt,
'minute'
) < 10 &&
!message.replyId
!message.replyId &&
!message.type
"
></Message>
<div
Expand Down

0 comments on commit 3721453

Please sign in to comment.