Make small images not scale up in image viewer (#1554)
Instead show them in real resolution
This commit is contained in:
parent
9ecb233763
commit
2889a72b81
1 changed files with 4 additions and 2 deletions
|
@ -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',
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue