mirror of
https://github.com/mastodon/mastodon.git
synced 2025-05-11 20:21:10 +00:00
Merge 6b59494e06
into fbe9728f36
This commit is contained in:
commit
7bc644a87e
|
@ -293,7 +293,9 @@ class MediaGallery extends PureComponent {
|
||||||
|
|
||||||
isFullSizeEligible() {
|
isFullSizeEligible() {
|
||||||
const { media } = this.props;
|
const { media } = this.props;
|
||||||
return media.size === 1 && media.getIn([0, 'meta', 'small', 'aspect']);
|
const aspect = media.getIn([0, 'meta', 'small', 'aspect']);
|
||||||
|
const minAspectRatioThreshold = 3/2;
|
||||||
|
return media.size === 1 && typeof aspect === 'number' && aspect >= minAspectRatioThreshold;
|
||||||
}
|
}
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user