Skip to content

Commit

Permalink
fix(#1472): hide scrollbar in scrollable components (#1490)
Browse files Browse the repository at this point in the history
This PR hides the scrollbar in all browsers without affecting the behavior

Closes #1472
  • Loading branch information
leiyre committed May 18, 2022
1 parent 20ee14a commit 999897a
Show file tree
Hide file tree
Showing 18 changed files with 25 additions and 29 deletions.
9 changes: 9 additions & 0 deletions frontend/assets/scss/abstract/placeholders/_placeholders.scss
Original file line number Diff line number Diff line change
Expand Up @@ -220,4 +220,13 @@
transition: opacity 0.1s ease 0.2s;
}
}
}
%hide-scrollbar {
/* Hide scrollbar for IE, Edge and Firefox */
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
/* Hide scrollbar for Chrome, Safari and Opera */
&::-webkit-scrollbar {
display: none;
}
}
26 changes: 0 additions & 26 deletions frontend/assets/scss/base/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -246,32 +246,6 @@ a {
height: 100%
}

.resize-observer[data-v-b329ee4c] {
position: absolute;
top: 0;
left: 0;
z-index: -1;
width: 100%;
height: 100%;
border: none;
background-color: transparent;
pointer-events: none;
display: block;
overflow: hidden;
opacity: 0
}

.resize-observer[data-v-b329ee4c] object {
display: block;
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
overflow: hidden;
pointer-events: none;
z-index: -1
}
.highlight-text {
display: inline;
color: $highlight;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ export default {
overflow-y: auto;
margin: 0 -1em 0 -1em;
padding: 0 1em 1em 1em;
@extend %hide-scrollbar;
}
li {
padding: 0.4em 0;
Expand Down
1 change: 1 addition & 0 deletions frontend/components/commons/header/filters/FiltersList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ $number-size: 18px;
// width: 910px;
max-height: 80vh;
overflow: auto;
@extend %hide-scrollbar;
}
}
&__item {
Expand Down
1 change: 1 addition & 0 deletions frontend/components/commons/results/Metadata.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ export default {
overflow-y: auto;
margin-right: -1em;
padding-right: 1em;
@extend %hide-scrollbar;
}
&__blocks {
display: flex;
Expand Down
4 changes: 1 addition & 3 deletions frontend/components/commons/results/ResultsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,7 @@ export default {
padding-left: 4em;
padding-bottom: 260px;
transition: padding 0s ease-in-out 0.1s;
&::-webkit-scrollbar {
display: none;
}
@extend %hide-scrollbar;
}
&__li {
position: relative;
Expand Down
1 change: 1 addition & 0 deletions frontend/components/commons/sidebar/SidebarProgress.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ label {
padding-right: 1em;
margin-right: -1em;
overflow: auto;
@extend %hide-scrollbar;
}
.records-number {
margin-right: 0;
Expand Down
1 change: 1 addition & 0 deletions frontend/components/core/table/ReTableInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ export default {
overflow: auto;
height: calc(100vh - 203px);
padding-bottom: 0.5em;
@extend %hide-scrollbar;
}
&__item {
position: relative;
Expand Down
1 change: 1 addition & 0 deletions frontend/components/core/table/TableFiltrableColumn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ export default {
overflow-y: auto;
margin: 0 -1em;
padding: 0 1em 1em;
@extend %hide-scrollbar;
}
li {
padding: 0.4em 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ export default {
margin-bottom: 2em;
overflow: auto;
height: 100vh;
@extend %hide-scrollbar;
&__container {
padding: 20px 20px 50px 20px;
background: rgba($lighter-color, 0.4);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ export default {
overflow: auto;
text-align: right;
padding: 4em 1.4em 1em 1em;
@extend %hide-scrollbar;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ label {
padding-right: 1em;
margin-right: -1em;
overflow: auto;
@extend %hide-scrollbar;
}
.records-number {
margin-right: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ label {
padding-right: 1em;
margin-right: -1em;
overflow: auto;
@extend %hide-scrollbar;
}
.records-number {
margin-right: 0;
Expand Down
1 change: 1 addition & 0 deletions frontend/components/text2text/sidebar/Text2TextStats.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ label {
padding-right: 1em;
margin-right: -1em;
overflow: auto;
@extend %hide-scrollbar;
}
.records-number {
margin-right: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export default {
min-height: 48px;
max-height: 189px;
overflow: auto;
@extend %hide-scrollbar;
&__button {
margin-top: 0.3em;
margin-left: 0.3em;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ export default {
margin: 0;
overscroll-behavior: contain;
position: relative;
@extend %hide-scrollbar;
}
&__option {
display: flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export default {
margin: 0;
overscroll-behavior: contain;
position: relative;
@extend %hide-scrollbar;
}
&__option {
display: flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ export default {
padding-right: 1em;
margin-right: -1em;
overflow: auto;
@extend %hide-scrollbar;
}
}
$colors: 50;
Expand Down

0 comments on commit 999897a

Please sign in to comment.