fix: adjusted the image height to be dynamic

This commit is contained in:
Rucha Ambaliya 2025-02-25 21:16:23 +05:30
parent a969a9e5fc
commit db0c2a0956

View File

@ -24,10 +24,10 @@ export const AttachmentViewerForm: FC<
{/* eslint-disable-next-line @next/next/no-img-element */} {/* eslint-disable-next-line @next/next/no-img-element */}
<img <img
width="100%" width="100%"
height={400}
style={{ style={{
cursor: "pointer", cursor: "pointer",
objectFit: "contain", objectFit: "contain",
maxHeight: "70vh",
}} }}
alt={data?.url} alt={data?.url}
src={data?.url} src={data?.url}