chat: refine image scaling

This commit is contained in:
Liam Fitzgerald 2020-06-19 19:22:44 +10:00
parent 48ae088bbd
commit 9aa4d96fb5

View File

@ -88,7 +88,8 @@ export class Message extends Component {
src={letter.url}
style={{
height: 'min(250px, 20vh)',
maxWidth: '80vw'
maxWidth: 'calc(100% - 36px - 1.5rem)',
objectFit: 'contain'
}}
></img>
);