Fall back on auto video height if not given, fixes #91

This commit is contained in:
Alex Gleason 2020-05-26 20:28:18 -05:00
parent 6f76e1796b
commit 6f0c9840be
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 4 additions and 2 deletions

View file

@ -410,7 +410,7 @@ class Video extends React.PureComponent {
height = Math.floor(containerWidth / aspectRatio);
}
playerStyle.height = height;
if (height) playerStyle.height = height;
}
let warning;
@ -445,7 +445,7 @@ class Video extends React.PureComponent {
aria-label={alt}
title={alt}
width={width}
height={height}
height={height || null}
volume={volume}
onClick={this.togglePlay}
onPlay={this.handlePlay}

View file

@ -3628,6 +3628,8 @@ a.status-card.compact:hover {
video {
max-width: 100vw;
max-height: 80vh;
min-height: 120px;
object-fit: contain;
z-index: 1;
}