Merge pull request #6514 from matrix-org/palid/fix/image-placeholders-incorrect-height

Fix incorrect height for encoded placeholder images
This commit is contained in:
Dariusz Niemczyk 2021-07-30 12:03:19 +02:00 committed by GitHub
commit 7c9df71a57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -366,7 +366,7 @@ export default class MImageBody extends React.Component<IBodyProps, IState> {
}
const thumbnail = (
<div className="mx_MImageBody_thumbnail_container" style={{ maxHeight: maxHeight + "px", maxWidth: maxWidth + "px" }}>
<div className="mx_MImageBody_thumbnail_container" style={{ maxHeight: maxHeight, maxWidth: maxWidth, aspectRatio: `${infoWidth}/${infoHeight}` }}>
{ showPlaceholder &&
<div
className="mx_MImageBody_thumbnail"