Skip to content

Commit 7d127c8

Browse files
gjanblaszczykgkatsev
authored andcommitted
fix: not inline volume slider showing up after mouse hovering on it (#5503)
Adjust the initial/hidden position of the slider to be off screen. Fixes #5502, fixes #5505
1 parent 58f638e commit 7d127c8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/css/components/_volume.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252
opacity: 1;
5353
position: relative;
5454

55+
&.vjs-volume-vertical {
56+
left: -3.5em;
57+
}
5558
$transition-property: visibility 0.1s, opacity 0.1s, height 0.1s, width 0.1s, left 0s, top 0s;
5659
@include transition($transition-property);
5760
}
@@ -75,7 +78,7 @@
7578
.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical {
7679
height: 8em;
7780
width: 3em;
78-
left: -3.5em;
81+
left: -3000em;
7982

8083
$transition-property: visibility 1s, opacity 1s, height 1s 1s, width 1s 1s, left 1s 1s, top 1s 1s;
8184
@include transition($transition-property)

0 commit comments

Comments
 (0)