fix media container

This commit is contained in:
btzr-io 2018-05-03 12:23:28 -06:00
parent fd822555c8
commit 6146016fb8
2 changed files with 19 additions and 2 deletions

View file

@ -176,6 +176,7 @@ class VideoPlayer extends React.PureComponent {
!unplayable && <LoadingScreen status={noMetadataMessage} />} !unplayable && <LoadingScreen status={noMetadataMessage} />}
{unplayable && <LoadingScreen status={unplayableMessage} spinner={false} />} {unplayable && <LoadingScreen status={unplayableMessage} spinner={false} />}
<div <div
className={'content__view--container'}
ref={container => { ref={container => {
this.media = container; this.media = container;
}} }}

View file

@ -35,8 +35,24 @@
} }
} }
.content__view { .content__view,
margin-top: -56.25%; .content__view--container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.content__view--container {
iframe {
background: #fff;
width: 100%;
height: 100%;
}
} }
.content__loading { .content__loading {