1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00
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) { _messageContent(contentUrl, thumbUrl, content) {
// 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(THUMBNAIL_MAX_HEIGHT, content.info.h); 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. // maximum height.
const maxWidth = content.info.w * maxHeight / content.info.h; const maxWidth = content.info.w * maxHeight / content.info.h;