Fall back on auto video height if not given, fixes #91
This commit is contained in:
parent
6f76e1796b
commit
6f0c9840be
2 changed files with 4 additions and 2 deletions
|
@ -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}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue