Skip to content

Commit fdcebd5

Browse files
Make seekbar and player controls appear at bottom of video and take full width (#6007)
* Remove padding and increase width of player controls * Increase height and set line-height for player buttons Co-Authored-By: Jason <84899178+kommunarr@users.noreply.github.com> * fix button tooltip position --------- Co-authored-by: Jason <84899178+kommunarr@users.noreply.github.com>
1 parent 4a60974 commit fdcebd5

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/renderer/components/ft-shaka-video-player/ft-shaka-video-player.css

+26
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,32 @@
243243
}
244244
}
245245

246+
@media only screen and (width >= 1000px) {
247+
:deep(.shaka-bottom-controls) {
248+
/* remove some bottom padding since the seek bar is above */
249+
padding-bottom: 0;
250+
251+
/* make seekbar take full width on non-mobile devices */
252+
width: 100%;
253+
}
254+
255+
/* increase height of captions area since we remove the padding-bottom below the seekbar */
256+
:deep(.shaka-controls-container[shown='true']~.shaka-text-container) {
257+
bottom: 12.5%;
258+
}
259+
260+
:deep(.shaka-controls-button-panel>button) {
261+
height: 40px;
262+
line-height: 0.5;
263+
}
264+
265+
:deep(.shaka-tooltips-on button:active::after),
266+
:deep(.shaka-tooltips-on button:focus-visible::after),
267+
:deep(.shaka-tooltips-on button:hover::after) {
268+
margin-bottom: 8px;
269+
}
270+
}
271+
246272
@media only screen and (width <=1350px) {
247273
:deep(.theatre-button) {
248274
display: none;

0 commit comments

Comments
 (0)