Skip to content

Commit

Permalink
Attempt to fix Pokémon sprites in Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
codemonkey85 committed Nov 22, 2024
1 parent e3a6050 commit a221a7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Pkmds.Web/Components/PokemonSlotComponent.razor
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
Style="@GetStyle()">
<object class="pkm-sprite"
type="image/png"
style="object-fit: contain;"
data="@(Pokemon is { Species: > 0 } ? SpriteHelper.GetPokemonSpriteFilename(Pokemon) : null)"
title="@(Pokemon is { Species: > 0 } ? AppService.GetPokemonSpeciesName(Pokemon.Species) : "Unknown")">
<img class="pkm-sprite"
Expand Down
4 changes: 2 additions & 2 deletions Pkmds.Web/wwwroot/css/app.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
pkm-sprite {
max-width: 68px;
max-height: 56px;
object-fit: contain;
align-self: center;
}

item-sprite {
object-fit: contain;
align-self: center;
}

.slot-fill :hover {
Expand Down

0 comments on commit a221a7f

Please sign in to comment.