mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-13 08:38:43 +03:00
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:
parent
77731f6ca0
commit
81a9b0d08e
@ -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>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user