Skip to content

Commit

Permalink
Fix broken embed mode for videojs
Browse files Browse the repository at this point in the history
This was broken after the rewrite to use the lazy loaded player in a
dialog.

(Slight adjustment to fix linting error from earlier patch.)

Bug: T293136
Change-Id: I7cbc939a4f0fa7a9c2676d4e41bfee1f473d8a7f
  • Loading branch information
hartman authored and bvibber committed Dec 22, 2021
1 parent 245da83 commit ea6a419
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions resources/embedPlayerIframe.css
Expand Up @@ -10,15 +10,32 @@ body {
padding: 0;
}

#videoContainer .videoHolder { /* stylelint-disable-line selector-max-id */
/* stylelint-disableselector-max-id */

#videoContainer .videoHolder {
position: static;
}

#videoContainer { /* stylelint-disable-line selector-max-id */
#videoContainer,
#videoContainer .mw-tmh-player {
width: 100%;
height: 100%;
background-color: #000;
display: flex;
align-items: center;
justify-content: center;
}

/* poster and preload */
#videoContainer .mw-tmh-player video {
width: 100%;
max-height: 100%;
object-fit: contain;
}

/* post load of videojs */
#videoContainer .video-js {
width: 100%;
height: 100%;
padding-top: 0;
}

0 comments on commit ea6a419

Please sign in to comment.