Skip to content

Commit

Permalink
Make small images not scale up in image viewer (#1554)
Browse files Browse the repository at this point in the history
Instead show them in real resolution
  • Loading branch information
WebFreak001 authored Nov 28, 2023
1 parent 9ecb233 commit 2889a72
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/components/image-viewer/ImageViewer.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Expand Down

0 comments on commit 2889a72

Please sign in to comment.