Fix auto quality display

This commit is contained in:
Rafael 2022-04-25 09:09:50 -03:00 committed by Thomas Zarebczan
parent aa1b75434d
commit 02ac8810d9
3 changed files with 8 additions and 2 deletions

View file

@ -1673,7 +1673,7 @@
"Quality": "Quality",
"Auto": "Auto",
"Auto --[Video quality. Short form]--": "Auto",
"Auto(%quality%) --[Video quality popup. Long form.]--": "Auto (%quality%)",
"Auto %quality% --[Video quality popup. Long form.]--": "Auto (%quality%)",
"Orig (%quality%) --[Video quality popup. Short form.]--": "Orig (%quality%)",
"Original (%quality%) --[Video quality popup. Long form.]--": "Original (%quality%)",
"Original --[Video quality button. Abbreviate to fit space.]--": "Original",

View file

@ -206,7 +206,7 @@ export const lastBandwidthSelector = function() {
const originalHeight = hlsQualitySelector.config.originalHeight;
if (hlsQualitySelector?.getCurrentQuality() === 'auto') {
hlsQualitySelector._qualityButton.menuButton_.$('.vjs-icon-placeholder').innerHTML = __('Auto(%quality%) --[Video quality popup. Long form.]--', { quality: selectedBandwidth.attributes.RESOLUTION.height + 'p' });
hlsQualitySelector._qualityButton.menuButton_.$('.vjs-icon-placeholder').innerHTML = __('Auto %quality% --[Video quality popup. Long form.]--', { quality: selectedBandwidth.attributes.RESOLUTION.height + 'p' });
}

View file

@ -311,6 +311,12 @@ button.vjs-big-play-button {
}
.vjs-quality-selector {
order: 13 !important;
display: flex;
.vjs-icon-placeholder {
word-break: break-word;
line-height: 1rem !important;
}
}
.vjs-button--theater-mode {
order: 14 !important;