1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-08 07:00:10 +02:00

fix: volume button empty space (#7466)

When responsive mode is used and the player layout is small or smaller, an empty space appears to the right of the mute button on hover.

Fixes #7465
This commit is contained in:
André 2021-11-10 20:04:08 +01:00 committed by GitHub
parent fdb87d8b72
commit 78cf834e6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,11 +39,14 @@
// Reset the size of the volume panel to the default so we don't see a big
// empty space to the right of the mute button.
.vjs-volume-panel.vjs-volume-panel-horizontal:hover,
.vjs-volume-panel.vjs-volume-panel-horizontal:active,
.vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active {
width: auto;
width: initial;
.vjs-volume-panel.vjs-volume-panel-horizontal {
&:hover,
&:active,
&.vjs-slider-active,
&.vjs-hover {
width: auto;
width: initial;
}
}
}