Updated Video component added aspect ratio for sizing

This commit is contained in:
mgabdev
2019-08-23 00:03:17 -04:00
parent 9b1f13487f
commit 449dd24b7f
4 changed files with 16 additions and 3 deletions

View File

@@ -344,6 +344,7 @@ class Status extends ImmutablePureComponent {
blurhash={video.get('blurhash')}
src={video.get('url')}
alt={video.get('description')}
aspectRatio={video.getIn(['meta', 'small', 'aspect'])}
width={this.props.cachedMediaWidth}
height={110}
inline