Upgrade zoom

This commit is contained in:
danidfra 2024-11-22 17:41:36 -03:00 committed by P. Reis
parent 6346e589ad
commit c7178ac674
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
import clsx from 'clsx';
import { PureComponent } from 'react';
const MIN_SCALE = 1;
@ -132,7 +133,7 @@ class ZoomableImage extends PureComponent<IZoomableImage> {
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={{