Fixed bug where images would be squished/stretched in SocialBadge
This commit is contained in:
parent
6fa69bceca
commit
d4d7e0d4f0
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ export const SocialBadge: React.FC<SocialBadgeProps> = ({title, link, imagePath}
|
|||
return (
|
||||
<a className="block bg-white rounded-full shadow-lg p-2 flex w-max items-center cursor-pointer transition-transform transform hover:scale-105 focus:outline-none focus:ring h-16"
|
||||
href={link}>
|
||||
{imagePath?(<img className={`flex rounded-full h-12 w-12`} src={imagePath}/>):null}
|
||||
{imagePath?(<img className={`flex rounded-full h-12 w-12 object-cover`} src={imagePath}/>):null}
|
||||
<div className="mx-4 font-semibold text-xl">{title}</div>
|
||||
</a>
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue