File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -157,6 +157,20 @@ audio {
157157 @import ' ../mixins/Plyr' ;
158158 }
159159
160+ // The settings menu (e.g. speed selection) is absolutely positioned and
161+ // opens upward from the controls. On short viewports its full height does
162+ // not fit and options get clipped off-screen. Cap its height to the
163+ // available viewport space and let it scroll internally so no option is
164+ // ever clipped, regardless of where the centered player sits.
165+ .plyr__menu__container {
166+ // The player is vertically centered, so the controls bar sits at
167+ // ~50vh and the menu opens upward into the top half of the viewport.
168+ // Cap to that available space (half the viewport, minus half the
169+ // controls bar and a top margin) so options never clip off-screen.
170+ max-height : calc (50vh - var (--plyr-button-size , 44px ) / 2 - 20px );
171+ overflow-y : auto ;
172+ }
173+
160174 // make it a bit off-center in order to fix mobile controls
161175 @media only screen and (max-width : 500px ) {
162176 .plyr--audio {
You can’t perform that action at this time.
0 commit comments