mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-12 04:47:27 +08:00
style: make nameplates fit better
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user