Merge pull request #5637 from williamkray/wreck/clean-thumbnail-changes

Improve URL preview formatting and image upload thumbnail size
This commit is contained in:
J. Ryan Stinnett 2021-02-17 11:37:37 +00:00 committed by GitHub
commit 5c1b38a48c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 7 deletions

View file

@ -362,7 +362,7 @@ export default class MImageBody extends React.Component {
}
// The maximum height of the thumbnail as it is rendered as an <img>
const maxHeight = Math.min(this.props.maxImageHeight || 600, infoHeight);
const maxHeight = Math.min(this.props.maxImageHeight || 240, infoHeight);
// The maximum width of the thumbnail, as dictated by its natural
// maximum height.
const maxWidth = infoWidth * maxHeight / infoHeight;