Skip to content

Commit

Permalink
Fix Safari sprite centering for medium displays
Browse files Browse the repository at this point in the history
  • Loading branch information
wormania committed Dec 7, 2023
1 parent aa94d99 commit c1fbfcd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/Towns/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,13 @@ <h2>Safari Encounters</h2>
<img width="48px" class="me-1" data-bind="attr: {src: './pokeclicker/docs/assets/images/pokemon/' + pokemonMap[$data.name].id + '.png'}"/>
<a href="#!" class="text-decoration-none" data-bind="text: $data.name, attr: {href: `#!Pokemon/${$data.name}` }"></a>
</td>
<td class="align-middle" style="display: flex; justify-content: space-around;">
<td class="align-middle">
<div data-bind="style: {
backgroundImage: `url(./pokeclicker/docs/assets/images/dynamic-background/pokemon/${Math.floor(pokemonList.find(p => p.name == $data.name).id).toString().padStart(3, '0')}.png)`,
backgroundSize: '192px',
height: '48px',
width: '48px',
margin: 'auto',
}"></div>
</td>
<td class="align-middle" data-bind="text: $data.weight">
Expand Down

0 comments on commit c1fbfcd

Please sign in to comment.