Make small images not scale up in image viewer (#1554)

Instead show them in real resolution
This commit is contained in:
Jan Jurzitza 2023-11-28 15:52:20 +01:00 committed by GitHub
parent 9ecb233763
commit 2889a72b81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,8 +32,10 @@ export const ImageViewerImg = style([
DefaultReset,
{
objectFit: 'contain',
width: '100%',
height: '100%',
width: 'auto',
height: 'auto',
maxWidth: '100%',
maxHeight: '100%',
backgroundColor: color.Surface.Container,
transition: 'transform 100ms linear',
},