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')} blurhash={video.get('blurhash')}
src={video.get('url')} src={video.get('url')}
alt={video.get('description')} alt={video.get('description')}
aspectRatio={video.getIn(['meta', 'small', 'aspect'])} aspectRatio={video.getIn(['meta', 'original', 'aspect'])}
width={this.props.cachedMediaWidth} width={this.props.cachedMediaWidth}
height={285} height={285}
inline inline

View File

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

View File

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

View File

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