improve UX

This commit is contained in:
liangping 2021-12-05 19:57:12 +08:00
parent 8cf7375ce1
commit 97083b40df
4 changed files with 21 additions and 5 deletions

BIN
public/logos/genesisl1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

View File

@ -1,8 +1,8 @@
{
"chain_name": "genesisL1",
"coingecko": "genesisL1",
"coingecko": "",
"api": "https://api.genesisl1.org",
"sdk_version": "0.42.4",
"addr_prefix": "genesis",
"logo": "https://raw.githubusercontent.com/alpha-omega-labs/bashscripts/main/genesisl1.png"
"logo": "/logos/genesisl1.png"
}

View File

@ -241,7 +241,7 @@ export function abbrMessage(msg) {
}, {})
const output = []
Object.keys(sum).forEach(k => {
output.push(`${k}×${sum[k]}`)
output.push(sum[k] > 1 ? `${k}×${sum[k]}` : k)
})
return output.join(', ')
}

View File

@ -133,7 +133,7 @@
>
<template #button-content>
<feather-icon
icon="MoreVerticalIcon"
icon="AlignJustifyIcon"
size="18"
class="cursor-pointer"
/>
@ -186,7 +186,13 @@
<app-collapse>
<app-collapse-item title="Assets">
<template #header>
<div>
<feather-icon
icon="CopyIcon"
@click="copy(acc.addr)"
/>&nbsp;
<small class="text-muted">{{ formatAddr(acc.addr) }}</small>
</div>
</template>
<div
v-for="b,i in balances[acc.addr]"
@ -228,6 +234,16 @@
>{{ formatChanges(b.denom) }}</small>
</div>
</div>
<b-button
v-if="balances[acc.addr]"
block
size="sm"
variant="outline-primary"
:to="`/${acc.chain}/account/${acc.addr}`"
class="mt-1 mb-0"
>
<feather-icon icon="TrelloIcon" /> Detail
</b-button>
</app-collapse-item>
</app-collapse>
</b-col>