pull/29861/merge
Tiago Peralta 2025-01-08 17:05:16 +00:00 committed by GitHub
commit f5cf0e5de3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -287,7 +287,9 @@ class MediaGallery extends PureComponent {
isFullSizeEligible() {
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 () {