mirror of
https://github.com/karl0ss/homepage.git
synced 2025-04-29 12:03:41 +01:00
Fix overflow non-square icons
This commit is contained in:
parent
f692e71991
commit
6867258449
@ -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}
|
||||||
/>
|
/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user