1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-12 11:15:04 +02:00

fix: hide the progress control and show the subs-caps button when using Live UI at extra small size (#5915)

This commit is contained in:
Pat O'Neill 2019-04-11 13:35:57 -04:00 committed by GitHub
parent c85bc00df2
commit 55b37524a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,14 +47,21 @@
}
}
&.vjs-layout-x-small,
// Hide the subs-caps button for non-Live UI "x-small" and for "tiny" players.
&.vjs-layout-x-small:not(.vjs-liveui),
&.vjs-layout-x-small:not(.vjs-live),
&.vjs-layout-tiny {
.vjs-subs-caps-button {
display: none;
}
}
// With the new Live UI, we can have the same treatment as "tiny". At
// "x-small", the Live UI makes the progress control very small and almost
// useless.
&.vjs-layout-x-small.vjs-liveui,
&.vjs-layout-tiny {
.vjs-custom-control-spacer {
@include flex(auto);
display: block;