Skip to content

Commit

Permalink
fix(volume): vertical slider causes viewport overflow in rtl layout
Browse files Browse the repository at this point in the history
  • Loading branch information
amtins committed Jun 13, 2023
1 parent 2b0df25 commit 5d4b28c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/css/components/_volume.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@
position: relative;

&.vjs-volume-vertical {
left: -3.5em;
height: 8em;
width: 3em;

pointer-events: initial;

@include transition(left 0s);
}
$transition-property: visibility 0.1s, opacity 0.1s, height 0.1s, width 0.1s, left 0s, top 0s;
Expand All @@ -75,10 +79,6 @@
}

.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical {
height: 8em;
width: 3em;
left: -3000em;

$transition-property: visibility 1s, opacity 1s, height 1s 1s, width 1s 1s, left 1s 1s, top 1s 1s;
@include transition($transition-property)
}
Expand Down Expand Up @@ -192,10 +192,11 @@
}

.video-js .vjs-volume-vertical {
width: 3em;
height: 8em;
left: -3.5em;
bottom: 8em;

pointer-events: none;

@include background-color-with-alpha($primary-background-color, $primary-background-transparency);
}

Expand Down

0 comments on commit 5d4b28c

Please sign in to comment.