adds a truncation to ons wallet addresses to prevent overflowing

This commit is contained in:
Sean Darcy 2021-04-14 13:14:46 +10:00
parent 8ec2399ac1
commit 88b2b1bb62
2 changed files with 9 additions and 5 deletions

View File

@ -12,10 +12,8 @@
<q-item-label :class="bindClass(record)">{{
isLocked(record) ? record.name_hash : record.name
}}</q-item-label>
<q-item-label v-if="!isLocked(record)">{{
record.value.substr(0, 12) +
"..." +
record.value.substr(record.value.length - 12)
<q-item-label v-if="!isLocked(record)" class="truncate-item">{{
record.value
}}</q-item-label>
</q-item-section>
<q-item-section side class="height">

View File

@ -539,6 +539,12 @@ footer,
}
}
.truncate-item {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.wallet-list {
.q-item-label {
color: white;
@ -874,4 +880,4 @@ footer,
padding-left: 0;
padding-right: 0;
}
}
}