From 9b7a823d842e5223d3454461ba13603b8726aa5e Mon Sep 17 00:00:00 2001 From: William Kray Date: Tue, 23 Feb 2021 09:04:13 -0800 Subject: [PATCH] checkout my changed thumbnail code from my rejected PR, but ignore the url preview changes --- res/css/views/messages/_MVideoBody.scss | 2 +- src/components/views/messages/MImageBody.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/res/css/views/messages/_MVideoBody.scss b/res/css/views/messages/_MVideoBody.scss index ac3491bc8ff..2be15447f7c 100644 --- a/res/css/views/messages/_MVideoBody.scss +++ b/res/css/views/messages/_MVideoBody.scss @@ -17,7 +17,7 @@ limitations under the License. span.mx_MVideoBody { video.mx_MVideoBody { max-width: 100%; - height: auto; + max-height: 300px; border-radius: 4px; } } diff --git a/src/components/views/messages/MImageBody.js b/src/components/views/messages/MImageBody.js index a8cdc17abf4..8456a5bd09e 100644 --- a/src/components/views/messages/MImageBody.js +++ b/src/components/views/messages/MImageBody.js @@ -362,7 +362,7 @@ export default class MImageBody extends React.Component { } // The maximum height of the thumbnail as it is rendered as an - 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;