diff --git a/src/features/ui/components/image-loader.tsx b/src/features/ui/components/image-loader.tsx index 7eab09c80..2635b106c 100644 --- a/src/features/ui/components/image-loader.tsx +++ b/src/features/ui/components/image-loader.tsx @@ -135,13 +135,13 @@ class ImageLoader extends PureComponent { const { alt, src, width, height, onClick } = this.props; const { loading } = this.state; - const className = 'relative size-full flex items-center justify-center flex-col'; + const className = 'relative h-screen flex items-center justify-center flex-col'; return (
{loading ? ( = (props) => { }; return ( -
+
= (props) => { } justifyContent='between' > - - - - + + - {status && ( + setIsFullScreen(!isFullScreen)} + onClick={handleDownload} /> + + {status && ( + setIsFullScreen(!isFullScreen)} + /> + )} + + + + {/* Height based on height of top/bottom bars */} +
+ {hasMultipleImages && ( +
+ +
)} - - - {/* Height based on height of top/bottom bars */} -
- {hasMultipleImages && ( -
- + {content} +
+ + {hasMultipleImages && ( +
+ +
+ )} +
+ + {actualStatus && ( + + + )} - - - {content} - - - {hasMultipleImages && ( -
- -
- )} -
- - {actualStatus && ( - - - - )} +
{actualStatus && ( diff --git a/src/features/ui/components/zoomable-image.tsx b/src/features/ui/components/zoomable-image.tsx index 43e4f2740..7260b61bb 100644 --- a/src/features/ui/components/zoomable-image.tsx +++ b/src/features/ui/components/zoomable-image.tsx @@ -1,3 +1,4 @@ +import clsx from 'clsx'; import { PureComponent } from 'react'; const MIN_SCALE = 1; @@ -132,7 +133,7 @@ class ZoomableImage extends PureComponent { role='presentation' ref={this.setImageRef} alt={alt} - className='size-auto max-h-[80%] max-w-full object-contain shadow-2xl' + className={clsx('size-auto max-h-[80%] max-w-full object-contain', { 'size-full max-h-full': scale !== 1 })} title={alt} src={src} style={{