Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #6514 from matrix-org/palid/fix/image-placeholders…
Browse files Browse the repository at this point in the history
…-incorrect-height

Fix incorrect height for encoded placeholder images
  • Loading branch information
Palid authored Jul 30, 2021
2 parents 8509096 + 7b6536c commit 7c9df71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/views/messages/MImageBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7c9df71

Please # to comment.