Stop using vanilla html <img />
All checks were successful
Deploy Frontend / docker (17, 3.8.5) (push) Successful in 1m8s
All checks were successful
Deploy Frontend / docker (17, 3.8.5) (push) Successful in 1m8s
This commit is contained in:
parent
2eb9286dcf
commit
491295f5bd
@ -109,11 +109,14 @@ const PlayerResult = ({ query, player }: PlayerResultProps): ReactElement => (
|
|||||||
content={`Click to view ${player.username}'s ${part}`}
|
content={`Click to view ${player.username}'s ${part}`}
|
||||||
>
|
>
|
||||||
<Link href={url} target="_blank">
|
<Link href={url} target="_blank">
|
||||||
<img
|
<div className="relative w-20 h-20">
|
||||||
className="h-20 sm:h-24 md:h-28 hover:scale-[1.02] transition-all transform-gpu"
|
<Image
|
||||||
src={url}
|
className="object-contain hover:scale-[1.02] transition-all transform-gpu"
|
||||||
alt={`${player.username}'s ${part}`}
|
src={url}
|
||||||
/>
|
alt={`${player.username}'s ${part}`}
|
||||||
|
fill
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
</SimpleTooltip>
|
</SimpleTooltip>
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user