Merge branch 'video-meta-fixes' into 'develop'

Fix video meta dimensions

See merge request soapbox-pub/soapbox-fe!509
This commit is contained in:
Alex Gleason 2021-05-17 22:16:09 +00:00
commit 51e52dcfb6
4 changed files with 4 additions and 4 deletions

View file

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

View file

@ -55,7 +55,7 @@ class ReportStatus extends ImmutablePureComponent {
blurhash={video.get('blurhash')}
src={video.get('url')}
alt={video.get('description')}
aspectRatio={video.getIn(['meta', 'small', 'aspect'])}
aspectRatio={video.getIn(['meta', 'original', 'aspect'])}
width={239}
height={110}
inline

View file

@ -38,7 +38,7 @@ export default class StatusCheckBox extends React.PureComponent {
blurhash={video.get('blurhash')}
src={video.get('url')}
alt={video.get('description')}
aspectRatio={video.getIn(['meta', 'small', 'aspect'])}
aspectRatio={video.getIn(['meta', 'original', 'aspect'])}
width={239}
height={110}
inline

View file

@ -115,7 +115,7 @@ export default class DetailedStatus extends ImmutablePureComponent {
blurhash={video.get('blurhash')}
src={video.get('url')}
alt={video.get('description')}
aspectRatio={video.getIn(['meta', 'small', 'aspect'])}
aspectRatio={video.getIn(['meta', 'original', 'aspect'])}
width={300}
height={150}
inline