This commit is contained in:
Luke Barnard 2018-05-22 16:09:54 +01:00
parent fb5dd4a410
commit c249bee9b5

View file

@ -240,7 +240,7 @@ export default class extends React.Component {
_messageContent(contentUrl, thumbUrl, content) {
// The maximum height of the thumbnail as it is rendered as an <img>
const maxHeight = Math.min(THUMBNAIL_MAX_HEIGHT, content.info.h);
// The maximum width of the thumbnail, as dictated by it's natural
// The maximum width of the thumbnail, as dictated by its natural
// maximum height.
const maxWidth = content.info.w * maxHeight / content.info.h;