Skip to content

Commit

Permalink
Fix item sizes in autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
codemonkey85 committed Nov 21, 2024
1 parent ed9780c commit 8edb797
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Pkmds.Web/Components/MainTabPages/BagTab.razor
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
@if (item.Value != 0)
{
<object class="item-sprite"
width="20"
height="20"
type="image/png"
data="@SpriteHelper.GetItemSpriteFilename(item.Value, saveFile.Context)"
title="@item.Text">
Expand All @@ -81,8 +83,10 @@
</MudAutocomplete>
@if (context.Item.Index != 0)
{
var itemText = AppService.GetItemComboItem(context.Item.Index)?.Text;
var itemText = ItemList[context.Item.Index];
<object class="item-sprite"
width="20"
height="20"
type="image/png"
data="@SpriteHelper.GetItemSpriteFilename(context.Item.Index, saveFile.Context)"
title="@itemText">
Expand Down
3 changes: 3 additions & 0 deletions Pkmds.Web/wwwroot/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ pkm-sprite {
}

item-sprite {
width: 20px;
height: 20px;
align-self: center;
}

.slot-fill :hover {
Expand Down

0 comments on commit 8edb797

Please sign in to comment.