Add Liquid Peg-in column to Federation UTXOs list

This commit is contained in:
natsee 2024-01-21 13:40:31 +01:00
parent cd713c61b3
commit 81a09e9dba
No known key found for this signature in database
GPG Key ID: 233CF3150A89BED8
2 changed files with 15 additions and 1 deletions

View File

@ -10,6 +10,7 @@
<th class="txid text-left" [ngClass]="{'widget': widget}">Output</th>
<th class="address text-left" *ngIf="!widget">Address</th>
<th class="amount text-right" [ngClass]="{'widget': widget}">Amount</th>
<th class="pegin text-right" *ngIf="!widget">Liquid Peg-in</th>
<th class="timestamp text-right" i18n="latest-blocks.date" [ngClass]="{'widget': widget}">Date</th>
</thead>
<tbody *ngIf="federationUtxos$ | async as utxos; else skeleton" [style]="isLoading ? 'opacity: 0.75' : ''">
@ -43,6 +44,11 @@
<td class="amount text-right">
<app-amount [satoshis]="utxo.amount" [noFiat]="true" [forceBtc]="true"></app-amount>
</td>
<td class="pegin text-left">
<a *ngIf="utxo.pegtxid" [routerLink]="['/tx', utxo.pegtxid + ':' + utxo.pegindex]" target="_blank" style="color:#116761">
<app-truncate [text]="utxo.pegtxid + ':' + utxo.pegindex" [lastChars]="6"></app-truncate>
</a>
</td>
<td class="timestamp text-right">
&lrm;{{ utxo.blocktime * 1000 | date:'yyyy-MM-dd HH:mm' }}
<div class="symbol lg-inline relative-time"><i>(<app-time kind="since" [time]="utxo.blocktime"></app-time>)</i></div>

View File

@ -36,7 +36,7 @@ tr, td, th {
}
.txid {
width: 35%;
width: 25%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@ -64,6 +64,14 @@ tr, td, th {
width: 25%;
}
.pegin {
width: 25%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 160px;
}
.timestamp {
width: 18%;
@media (max-width: 800px) {