Skip to content

Commit

Permalink
chore(scrollbar): removed mask, added padding
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomBos authored and ThomBos committed Apr 19, 2022
1 parent 66fa81e commit 792f8b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 23 deletions.
1 change: 0 additions & 1 deletion components/ui/SimpleScroll/SimpleScroll.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@
<div class="wrapper">
<slot />
</div>
<div class="mask" />
</div>
30 changes: 8 additions & 22 deletions components/ui/SimpleScroll/SimpleScroll.less
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,13 @@
flex-direction: row;

.wrapper {
width: calc(@full + @scroll-bar-size);
width: @full;
height: @full;
padding-right: @scroll-bar-size;
box-sizing: border-box;

@media only screen and (max-width: 1024px) {
width: calc(@full + @scroll-bar-size*2);
}
}

.mask {
pointer-events: none;
width: @scroll-bar-size;

@media only screen and (max-width: 1024px) {
width: @scroll-bar-size*2;
padding-right: @scroll-bar-size*2;
}
}

Expand All @@ -38,19 +31,12 @@

.wrapper {
width: @full;
height: calc(@full - @scroll-bar-size);

@media only screen and (max-width: 1024px) {
height: calc(@full - @scroll-bar-size*2);
}
}

.mask {
pointer-events: none;
height: @scroll-bar-size;
height: @full;
padding-bottom: @scroll-bar-size;
box-sizing: border-box;

@media only screen and (max-width: 1024px) {
height: @scroll-bar-size*2;
padding-bottom: @scroll-bar-size*2;
}
}

Expand Down

0 comments on commit 792f8b6

Please sign in to comment.