aboutsummaryrefslogtreecommitdiff
path: root/src/lib/sections/Inventories.svelte
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-03-04 21:48:38 +0000
committermat <github@matdoes.dev>2022-03-04 21:48:38 +0000
commit962377bd7e76e3929a85f50dae821d40002aeea9 (patch)
treee7a9b2c34428fab34e2363fa7067c4fc040db6ff /src/lib/sections/Inventories.svelte
parent517ca0ac61dc66a5a20cfb0468145ef33e2eefe2 (diff)
downloadskyblock-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.svelte16
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>