Upgrade Pokemon sprite quality (#140)
Co-authored-by: tembo[bot] <208362400+tembo[bot]@users.noreply.github.com> Co-authored-by: Rohith <gillarohith1@gmail.com>
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 111 KiB |
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 127 KiB |
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 543 B After Width: | Height: | Size: 141 KiB |
|
Before Width: | Height: | Size: 582 B After Width: | Height: | Size: 105 KiB |
|
Before Width: | Height: | Size: 916 B After Width: | Height: | Size: 126 KiB |
|
Before Width: | Height: | Size: 929 B After Width: | Height: | Size: 113 KiB |
|
Before Width: | Height: | Size: 597 B After Width: | Height: | Size: 77 KiB |
|
Before Width: | Height: | Size: 492 B After Width: | Height: | Size: 118 KiB |
|
Before Width: | Height: | Size: 583 B After Width: | Height: | Size: 105 KiB |
|
Before Width: | Height: | Size: 575 B After Width: | Height: | Size: 112 KiB |
|
|
@ -149,7 +149,7 @@ export function FunAnalytics() {
|
|||
<img
|
||||
src={getPokemonSpriteUrl(activePokemonId)}
|
||||
alt={pokemon.name}
|
||||
className="size-10 pixelated"
|
||||
className="size-10"
|
||||
draggable={false}
|
||||
/>
|
||||
<div className="min-w-0 flex-1">
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ function PokemonSelector({
|
|||
<img
|
||||
src={getPokemonSpriteUrl(pokemon.id)}
|
||||
alt={pokemon.name}
|
||||
className="size-10 pixelated"
|
||||
className="size-10"
|
||||
draggable={false}
|
||||
/>
|
||||
<span className="text-[9px] text-muted-foreground leading-none">{pokemon.name}</span>
|
||||
|
|
@ -276,7 +276,7 @@ export function PokemonBuddy() {
|
|||
className="fixed bottom-3 right-3 z-50 rounded-full bg-card border border-border/50 p-1.5 shadow-md hover:bg-accent transition-colors"
|
||||
title="Show Pokemon Buddy"
|
||||
>
|
||||
<img src={fallbackUrl} alt={pokemon.name} className="size-6 pixelated" draggable={false} />
|
||||
<img src={fallbackUrl} alt={pokemon.name} className="size-6" draggable={false} />
|
||||
</button>
|
||||
)
|
||||
}
|
||||
|
|
@ -410,7 +410,10 @@ export function PokemonBuddy() {
|
|||
<img
|
||||
src={currentSprite}
|
||||
alt={pokemon.name}
|
||||
className="size-16 pixelated drop-shadow-lg select-none"
|
||||
className={cn(
|
||||
'size-16 drop-shadow-lg select-none',
|
||||
!spriteError && 'pixelated'
|
||||
)}
|
||||
draggable={false}
|
||||
onError={handleSpriteError}
|
||||
/>
|
||||
|
|
|
|||