mirror of https://github.com/hykilpikonna/AquaDX
style: make nameplates fit better
parent
931e611cf7
commit
ce95f2165d
|
@ -174,7 +174,7 @@
|
||||||
{#if userboxSelected == "nameplateId"}
|
{#if userboxSelected == "nameplateId"}
|
||||||
{#each userItems.find(f => f.ubKey == "nameplateId")?.items ?? [] as item}
|
{#each userItems.find(f => f.ubKey == "nameplateId")?.items ?? [] as item}
|
||||||
{#await DDSreader?.getFile(`nameplate:${item.itemId.toString().padStart(8, "0")}`) then imageURL}
|
{#await DDSreader?.getFile(`nameplate:${item.itemId.toString().padStart(8, "0")}`) then imageURL}
|
||||||
<button on:click={() => {userbox[userboxSelected] = item.itemId; submit(userboxSelected)}}>
|
<button class="nameplate" on:click={() => {userbox[userboxSelected] = item.itemId; submit(userboxSelected)}}>
|
||||||
<img src={imageURL} alt={allItems.namePlate[item.itemId].name} title={allItems.namePlate[item.itemId].name}>
|
<img src={imageURL} alt={allItems.namePlate[item.itemId].name} title={allItems.namePlate[item.itemId].name}>
|
||||||
</button>
|
</button>
|
||||||
{/await}
|
{/await}
|
||||||
|
@ -440,6 +440,11 @@ p.notice
|
||||||
img
|
img
|
||||||
width: 100%
|
width: 100%
|
||||||
|
|
||||||
|
&.nameplate
|
||||||
|
width: 50%
|
||||||
|
aspect-ratio: unset
|
||||||
|
border: none
|
||||||
|
|
||||||
.chuni-userbox-container
|
.chuni-userbox-container
|
||||||
display: flex
|
display: flex
|
||||||
align-items: center
|
align-items: center
|
||||||
|
|
Loading…
Reference in New Issue