Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions src/assets/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,22 @@ $icon-font-path: '../icon-font' !default;
}
}

.vjs-playback-rate-value {
font-size: 1.3em;
line-height: 2.3em;
.vjs-playback-rate {
// Fit three-digit rates (e.g. 1.75) at the value's 1.3em font-size.
width: 3em;

.vjs-playback-rate-value {
font-size: 1.3em;
line-height: 2.3em;
}

// video.js caps this menu at 4em, which truncates rates like 1.75 once the
// item padding and the selected-item gutter are subtracted. The content is
// absolutely positioned, so it - not the menu - has to grow.
.vjs-menu .vjs-menu-content {
width: max-content;
min-width: 100%;
}
}

.vjs-subs-caps-button {
Expand Down
Loading