Skip to content

Commit

Permalink
fix(slider): missing width when in flex layout
Browse files Browse the repository at this point in the history
  • Loading branch information
qmhc committed Sep 18, 2022
1 parent f09ea18 commit 7506916
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions style/slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,15 @@ $slider: map.merge(
position: relative;
display: flex;
flex-direction: column;
width: 100%;
padding: $padding 0;
margin: 2px $margin;
cursor: pointer;

&--vertical {
display: inline-flex;
flex-direction: row;
width: auto;
height: 100%;
padding: 0 $padding;
margin: $margin 2px;
Expand All @@ -82,6 +84,7 @@ $slider: map.merge(
align-items: flex-start;
width: 100%;
height: get-css-var('slider-track-height');
overflow: hidden;
background-color: get-css-var('slider-track-bg-color');
border-radius: get-css-var('slider-track-height');
transition: get-css-var('transition-background');
Expand Down

0 comments on commit 7506916

Please sign in to comment.