minor improvement

This commit is contained in:
daniel31x13 2024-08-28 20:30:57 -04:00
parent 2d0e52f65b
commit 975716937f

View File

@ -16,7 +16,7 @@ export default function LinkIcon({
hideBackground?: boolean; hideBackground?: boolean;
}) { }) {
let iconClasses: string = clsx( let iconClasses: string = clsx(
"rounded flex item-center justify-center shadow-md select-none z-10 w-12 h-12", "rounded flex item-center justify-center shadow select-none z-10 w-12 h-12",
!hideBackground && "rounded-md bg-white backdrop-blur-lg bg-opacity-50 p-1", !hideBackground && "rounded-md bg-white backdrop-blur-lg bg-opacity-50 p-1",
className className
); );
@ -29,13 +29,15 @@ export default function LinkIcon({
return ( return (
<> <>
{link.icon ? ( {link.icon ? (
<Icon <div className={iconClasses}>
icon={link.icon} <Icon
size={30} icon={link.icon}
weight={(link.iconWeight || "regular") as IconWeight} size={30}
color={link.color || "#0ea5e9"} weight={(link.iconWeight || "regular") as IconWeight}
className={iconClasses} color={link.color || "#0ea5e9"}
/> className="m-auto"
/>
</div>
) : link.type === "url" && url ? ( ) : link.type === "url" && url ? (
showFavicon ? ( showFavicon ? (
<Image <Image