From 6346e589ad92a92eda6d0f5c4fbb40af588f7045 Mon Sep 17 00:00:00 2001 From: danidfra Date: Fri, 22 Nov 2024 12:30:22 -0300 Subject: [PATCH] Fix media-modal-zoom --- src/features/ui/components/image-loader.tsx | 4 +- .../ui/components/modals/media-modal.tsx | 148 +++++++++--------- src/styles/tailwind.css | 2 - 3 files changed, 77 insertions(+), 77 deletions(-) diff --git a/src/features/ui/components/image-loader.tsx b/src/features/ui/components/image-loader.tsx index 5abd00dde..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 h-[80vh] flex items-center justify-center flex-col'; + const className = 'relative h-screen flex items-center justify-center flex-col'; return (
{loading ? ( = (props) => { } justifyContent='between' > - - - - + + - {status && ( + setIsFullScreen(!isFullScreen)} + onClick={handleDownload} /> - )} + + {status && ( + setIsFullScreen(!isFullScreen)} + /> + )} + - - {/* Height based on height of top/bottom bars */} -
- {hasMultipleImages && ( -
- +
+ )} + +
+ - - + {content} +
- )} -
- - {content} - + {hasMultipleImages && ( +
+ +
+ )}
- {hasMultipleImages && ( -
- -
+ {actualStatus && ( + + + )} -
- - {actualStatus && ( - - - - )} + {actualStatus && ( diff --git a/src/styles/tailwind.css b/src/styles/tailwind.css index e9e656a9b..c83ce2a4a 100644 --- a/src/styles/tailwind.css +++ b/src/styles/tailwind.css @@ -39,8 +39,6 @@ @layer utilities { .media-modal * { img { - max-height: 80vh; - width: 100%; object-fit: contain; }