Make small images not scale up in image viewer (#1554)
Instead show them in real resolution
This commit is contained in:
@@ -32,8 +32,10 @@ export const ImageViewerImg = style([
|
|||||||
DefaultReset,
|
DefaultReset,
|
||||||
{
|
{
|
||||||
objectFit: 'contain',
|
objectFit: 'contain',
|
||||||
width: '100%',
|
width: 'auto',
|
||||||
height: '100%',
|
height: 'auto',
|
||||||
|
maxWidth: '100%',
|
||||||
|
maxHeight: '100%',
|
||||||
backgroundColor: color.Surface.Container,
|
backgroundColor: color.Surface.Container,
|
||||||
transition: 'transform 100ms linear',
|
transition: 'transform 100ms linear',
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user