mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-09 14:58:47 +00:00
Fix overflow non-square icons
This commit is contained in:
parent
f692e71991
commit
6867258449
1 changed files with 4 additions and 0 deletions
|
@ -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}
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue