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", "chain_name": "genesisL1",
"coingecko": "genesisL1", "coingecko": "",
"api": "https://api.genesisl1.org", "api": "https://api.genesisl1.org",
"sdk_version": "0.42.4", "sdk_version": "0.42.4",
"addr_prefix": "genesis", "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 = [] const output = []
Object.keys(sum).forEach(k => { Object.keys(sum).forEach(k => {
output.push(`${k}×${sum[k]}`) output.push(sum[k] > 1 ? `${k}×${sum[k]}` : k)
}) })
return output.join(', ') return output.join(', ')
} }

View File

@ -133,7 +133,7 @@
> >
<template #button-content> <template #button-content>
<feather-icon <feather-icon
icon="MoreVerticalIcon" icon="AlignJustifyIcon"
size="18" size="18"
class="cursor-pointer" class="cursor-pointer"
/> />
@ -186,7 +186,13 @@
<app-collapse> <app-collapse>
<app-collapse-item title="Assets"> <app-collapse-item title="Assets">
<template #header> <template #header>
<small class="text-muted">{{ formatAddr(acc.addr) }}</small> <div>
<feather-icon
icon="CopyIcon"
@click="copy(acc.addr)"
/>&nbsp;
<small class="text-muted">{{ formatAddr(acc.addr) }}</small>
</div>
</template> </template>
<div <div
v-for="b,i in balances[acc.addr]" v-for="b,i in balances[acc.addr]"
@ -228,6 +234,16 @@
>{{ formatChanges(b.denom) }}</small> >{{ formatChanges(b.denom) }}</small>
</div> </div>
</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-item>
</app-collapse> </app-collapse>
</b-col> </b-col>