change image rendering size max height
This commit is contained in:
parent
e72a7567f7
commit
cd1a99186b
1 changed files with 1 additions and 1 deletions
|
@ -362,7 +362,7 @@ export default class MImageBody extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
// The maximum height of the thumbnail as it is rendered as an <img>
|
// 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
|
// The maximum width of the thumbnail, as dictated by its natural
|
||||||
// maximum height.
|
// maximum height.
|
||||||
const maxWidth = infoWidth * maxHeight / infoHeight;
|
const maxWidth = infoWidth * maxHeight / infoHeight;
|
||||||
|
|
Loading…
Reference in a new issue