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}`}
|
||||
>
|
||||
<Link href={url} target="_blank">
|
||||
<img
|
||||
className="h-20 sm:h-24 md:h-28 hover:scale-[1.02] transition-all transform-gpu"
|
||||
src={url}
|
||||
alt={`${player.username}'s ${part}`}
|
||||
/>
|
||||
<div className="relative w-20 h-20">
|
||||
<Image
|
||||
className="object-contain hover:scale-[1.02] transition-all transform-gpu"
|
||||
src={url}
|
||||
alt={`${player.username}'s ${part}`}
|
||||
fill
|
||||
/>
|
||||
</div>
|
||||
</Link>
|
||||
</SimpleTooltip>
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user