diff options
author | eug-vs <eug-vs@keemail.me> | 2020-08-17 19:15:24 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-08-17 19:15:24 +0300 |
commit | 20e5f105db0976b637f5dcad538ac40aa4c2d110 (patch) | |
tree | ec7a6cacac206082a2fe12386ad898a59d667e17 | |
parent | a2288ab4786d9886245df6c92b4fbbe5be0e7a5f (diff) | |
download | which-ui-20e5f105db0976b637f5dcad538ac40aa4c2d110.tar.gz |
fix: add correct image orientation
-rw-r--r-- | src/components/Image/Image.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/Image/Image.tsx b/src/components/Image/Image.tsx index 1898716..716736f 100644 --- a/src/components/Image/Image.tsx +++ b/src/components/Image/Image.tsx @@ -15,6 +15,9 @@ interface PropTypes { type Status = 'success' | 'loading' | 'error'; const useStyles = makeStyles(theme => ({ + image: { + imageOrientation: 'from-image' + }, container: { width: '100%', height: '100%', @@ -71,7 +74,7 @@ const Image: React.FC<PropTypes> = React.memo(({ <img src={src} alt={alt} - className={`${className} ${classes[status]}`} + className={`${classes.image} ${classes[status]} ${className}`} style={{ transition }} onLoad={handleLoad} onError={handleError} |