Skip to content

Commit

Permalink
fix: volume button empty space (videojs#7466)
Browse files Browse the repository at this point in the history
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 videojs#7465
  • Loading branch information
amtins authored Nov 10, 2021
1 parent fdb87d8 commit 78cf834
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/css/components/_adaptive.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

Expand Down

0 comments on commit 78cf834

Please sign in to comment.