Fix overflow non-square icons

This commit is contained in:
shamoon 2023-05-01 11:29:35 -07:00
parent f692e71991
commit 6867258449

View File

@ -24,6 +24,8 @@ export default function ResolvedIcon({ icon, width = 32, height = 32, alt = "log
width, width,
height, height,
objectFit: "contain", objectFit: "contain",
maxHeight: "100%",
maxWidth: "100%",
}} }}
alt={alt} alt={alt}
/> />
@ -66,6 +68,8 @@ export default function ResolvedIcon({ icon, width = 32, height = 32, alt = "log
width, width,
height, height,
objectFit: "contain", objectFit: "contain",
maxHeight: "100%",
maxWidth: "100%"
}} }}
alt={alt} alt={alt}
/> />