fix: image zoom over 100% (#998)

This commit is contained in:
Aman Harwara
2022-04-25 19:51:39 +05:30
committed by GitHub
parent 46582b2577
commit d0d97a8dbc
3 changed files with 31 additions and 17 deletions

View File

@@ -115,8 +115,8 @@ export const FilePreviewModal: FunctionComponent<Props> = ({ application, file,
</button>
</div>
</div>
<div className="flex flex-grow min-h-0 overflow-auto">
<div className="flex flex-grow items-center justify-center relative">
<div className="flex flex-grow min-h-0">
<div className="flex flex-grow items-center justify-center relative max-w-full">
{objectUrl ? (
<PreviewComponent file={file} objectUrl={objectUrl} />
) : isLoadingFile ? (