I am currently working on customizing the videojs
CSS for the ChapterButton menu in order to make it expand to accommodate varying line lengths without wrapping. Even though I can set it to a fixed width, I require it to be able to adjust to different line lengths. Is there a simple way to achieve this? Am I focusing on the correct CSS rule?
Current CSS Code
.vjs-menu-button-popup .vjs-menu {
display: none;
position: absolute;
bottom: 0;
width: 10em;
left: -3em;
height: 0em;
margin-bottom: 1.5em;
border-top-color: rgba(43, 51, 63, 0.7);
}
.vjs-menu-button-popup .vjs-menu .vjs-menu-content {
background-color: #2B333F;
background-color: rgba(43, 51, 63, 0.7);
position: absolute;
width: 100%;
bottom: 1.5em;
max-height: 15em;
}
Result
https://i.sstatic.net/uJCYo.png
My Custom CSS Changes
.vjs-menu-button-popup .vjs-menu {
width: 20em;
left: 1em;
}
Result