From 686725844954cebbd9da93da67cfdca6c9a235db Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 1 May 2023 11:29:35 -0700 Subject: [PATCH] Fix overflow non-square icons --- src/components/resolvedicon.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/resolvedicon.jsx b/src/components/resolvedicon.jsx index 816b1395..608d2762 100644 --- a/src/components/resolvedicon.jsx +++ b/src/components/resolvedicon.jsx @@ -24,6 +24,8 @@ export default function ResolvedIcon({ icon, width = 32, height = 32, alt = "log width, height, objectFit: "contain", + maxHeight: "100%", + maxWidth: "100%", }} alt={alt} /> @@ -66,6 +68,8 @@ export default function ResolvedIcon({ icon, width = 32, height = 32, alt = "log width, height, objectFit: "contain", + maxHeight: "100%", + maxWidth: "100%" }} alt={alt} />