diff options
author | mat <github@matdoes.dev> | 2022-03-04 21:48:38 +0000 |
---|---|---|
committer | mat <github@matdoes.dev> | 2022-03-04 21:48:38 +0000 |
commit | 962377bd7e76e3929a85f50dae821d40002aeea9 (patch) | |
tree | e7a9b2c34428fab34e2363fa7067c4fc040db6ff /src/lib/sections/Inventories.svelte | |
parent | 517ca0ac61dc66a5a20cfb0468145ef33e2eefe2 (diff) | |
download | skyblock-stats-962377bd7e76e3929a85f50dae821d40002aeea9.tar.gz skyblock-stats-962377bd7e76e3929a85f50dae821d40002aeea9.tar.bz2 skyblock-stats-962377bd7e76e3929a85f50dae821d40002aeea9.zip |
bug fixes and polish
Diffstat (limited to 'src/lib/sections/Inventories.svelte')
-rw-r--r-- | src/lib/sections/Inventories.svelte | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/lib/sections/Inventories.svelte b/src/lib/sections/Inventories.svelte index 1f30255..8be6853 100644 --- a/src/lib/sections/Inventories.svelte +++ b/src/lib/sections/Inventories.svelte @@ -2,7 +2,7 @@ import Inventory from '$lib/minecraft/Inventory.svelte' import { fade } from 'svelte/transition' import { cleanId } from '$lib/utils' - import { skyblockItemToUrl } from '$lib/minecraft/inventory' + import { skyblockItemToUrl, type Item } from '$lib/minecraft/inventory' export let data export let pack @@ -13,11 +13,15 @@ let selectedInventoryName: string = displayingInventories[0] - const inventoryIconMap = { - inventory: 'nether_star', + const inventoryIconMap: Record<string, string | Item> = { + inventory: { + id: 'SKYBLOCK_MENU', + vanillaId: 'nether_star', + display: { name: 'SkyBlock Menu' }, + }, ender_chest: 'ender_chest', potion_bag: 'potion', - fishing_bag: 'cod', + fishing_bag: 'fishing_rod', quiver: 'arrow', wardrobe: 'leather_chestplate', } @@ -80,10 +84,10 @@ image-rendering: pixelated; } .inventory-tab-name { - vertical-align: middle; + vertical-align: text-top; } .inventory-tab:hover, .inventory-tab-active { - background-color: rgba(20, 20, 20, 0.9); + background-color: rgba(40, 40, 40, 0.9); } </style> |