Fix files don't display correctly in-app anymore #1434

Merged
btzr-io merged 4 commits from viewer-fix into master 2018-05-04 20:29:33 +02:00
2 changed files with 19 additions and 2 deletions
Showing only changes of commit 6146016fb8 - Show all commits

View file

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

View file

@ -35,8 +35,24 @@
}
}
.content__view {
margin-top: -56.25%;
.content__view,
.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 {