minor fix

This commit is contained in:
daniel31x13 2023-12-02 13:34:28 -05:00
parent 18e0b8b010
commit c447b36540

View File

@ -212,15 +212,13 @@ export default function LinkCard({ link, count, className }: Props) {
onClick={() => router.push("/links/" + link.id)} onClick={() => router.push("/links/" + link.id)}
className="flex items-start cursor-pointer gap-5 sm:gap-10 h-full w-full p-4" className="flex items-start cursor-pointer gap-5 sm:gap-10 h-full w-full p-4"
> >
{url && account.displayLinkIcons && ( {url && (
<Image <Image
src={`https://t2.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=${url.origin}&size=32`} src={`https://t2.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=${url.origin}&size=32`}
width={64} width={64}
height={64} height={64}
alt="" alt=""
className={`${ className={`absolute w-12 duration-100 bg-white rounded-md p-1 bottom-5 right-5 select-none z-10`}
account.blurredFavicons ? "blur-sm " : ""
} absolute w-12 duration-100 bg-white rounded-md p-1 bottom-5 right-5 select-none z-10`}
draggable="false" draggable="false"
onError={(e) => { onError={(e) => {
const target = e.target as HTMLElement; const target = e.target as HTMLElement;