Set width for NextVideoButton in video controls

Added an explicit width of 2.5em to the NextVideoButton to ensure consistent sizing in the video player controls.
This commit is contained in:
Yiannis Christodoulou 2025-10-10 01:59:18 +03:00
parent 73a89c72df
commit 7a7d58e680

View File

@ -29,6 +29,7 @@ class NextVideoButton extends Button {
'aria-label': 'Next Video', 'aria-label': 'Next Video',
'aria-disabled': 'false', 'aria-disabled': 'false',
}); });
button.style.width = '2.5em';
// Create the icon placeholder span (Video.js standard structure) // Create the icon placeholder span (Video.js standard structure)
const iconPlaceholder = videojs.dom.createEl('span', { const iconPlaceholder = videojs.dom.createEl('span', {