Skip to content

Commit

Permalink
Fixes scrollbar issue on delegate vote with reason card
Browse files Browse the repository at this point in the history
  • Loading branch information
mcgingras committed Apr 22, 2024
1 parent 62948be commit 928e5c7
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/components/Delegates/DelegateVotes/delegateVotes.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
display: grid;
overflow-y: hidden;
grid-template-columns: 1fr 1px 1fr;
-ms-overflow-style: none; /* Internet Explorer 10+ */
scrollbar-width: none; /* Firefox */

::-webkit-scrollbar {
display: none; /* Safari and Chrome */
}

@media (max-width: $screen-sm) {
grid-template-rows: 1fr;
Expand Down Expand Up @@ -70,14 +76,19 @@
}

.vote_reason_container {
overflow-y: scroll;
overflow-x: scroll;
overflow-x: hidden;
padding: $spacing-4 $spacing-6;
font-size: $font-size-xs;
font-weight: $font-weight-medium;
white-space: pre-wrap;
color: #66676b;
width: fit-content;
word-wrap: break-word;
-ms-overflow-style: none; /* Internet Explorer 10+ */
scrollbar-width: none; /* Firefox */

::-webkit-scrollbar {
display: none; /* Safari and Chrome */
}

@media (max-width: $screen-sm) {
padding-top: 0;
Expand Down

0 comments on commit 928e5c7

Please sign in to comment.