chat: prevent reflow from image loading

Sets a static height on inline images in chat to prevent loss of scroll
position.

Fixes #2883
This commit is contained in:
Liam Fitzgerald 2020-06-17 16:10:46 +10:00
parent 77731f6ca0
commit 81a9b0d08e

View File

@ -87,8 +87,8 @@ export class Message extends Component {
className="o-80-d"
src={letter.url}
style={{
width: '50%',
maxWidth: '250px'
height: 'min(250px, 20vh)',
maxWidth: '80vw'
}}
></img>
);