on chain UTXOs page layout

pull/1127/head
ShahanaFarooqui 2 years ago
parent 76afb82dae
commit c4b2e21139

@ -20,7 +20,7 @@
<ng-container matColumnDef="tx_id"> <ng-container matColumnDef="tx_id">
<th mat-header-cell *matHeaderCellDef mat-sort-header> Transaction ID </th> <th mat-header-cell *matHeaderCellDef mat-sort-header> Transaction ID </th>
<td mat-cell *matCellDef="let utxo"> <td mat-cell *matCellDef="let utxo">
<span fxLayout="row" class="ellipsis-parent" [ngStyle]="{'max-width': (screenSize === screenSizeEnum.XS) ? '12rem' : '25rem'}"> <span fxLayout="row" class="ellipsis-parent" [ngStyle]="{'max-width': (screenSize === screenSizeEnum.XS) ? '10rem' : '20rem'}">
<span class="ellipsis-child">{{utxo.outpoint.txid_str}}</span> <span class="ellipsis-child">{{utxo.outpoint.txid_str}}</span>
</span> </span>
</td> </td>
@ -34,8 +34,24 @@
<ng-container matColumnDef="label"> <ng-container matColumnDef="label">
<th mat-header-cell *matHeaderCellDef mat-sort-header class="pl-1"> Label </th> <th mat-header-cell *matHeaderCellDef mat-sort-header class="pl-1"> Label </th>
<td mat-cell *matCellDef="let utxo" class="pl-1"> <td mat-cell *matCellDef="let utxo" class="pl-1">
<span fxLayout="row" class="ellipsis-parent" [ngStyle]="{'max-width': (screenSize === screenSizeEnum.XS) ? '12rem' : '25rem'}"> <span fxLayout="row" class="ellipsis-parent" [ngStyle]="{'max-width': (screenSize === screenSizeEnum.XS) ? '10rem' : '20rem'}">
<span class="ellipsis-child">{{utxo?.label}}</span> <span class="ellipsis-child">{{utxo.label}}</span>
</span>
</td>
</ng-container>
<ng-container matColumnDef="address_type">
<th mat-header-cell *matHeaderCellDef mat-sort-header> Address Type </th>
<td mat-cell *matCellDef="let utxo">
<div fxLayout="row" fxLayoutAlign="start center">
{{addressType[utxo.address_type].name}}
</div>
</td>
</ng-container>
<ng-container matColumnDef="address">
<th mat-header-cell *matHeaderCellDef mat-sort-header class="pl-1"> Address </th>
<td mat-cell *matCellDef="let utxo" class="pl-1">
<span fxLayout="row" class="ellipsis-parent" [ngStyle]="{'max-width': (screenSize === screenSizeEnum.XS) ? '10rem' : '20rem'}">
<span class="ellipsis-child">{{utxo?.address}}</span>
</span> </span>
</td> </td>
</ng-container> </ng-container>

@ -2,12 +2,11 @@
width: 2rem; width: 2rem;
} }
.mat-column-label, .mat-column-tx_id { .mat-column-label, .mat-column-tx_id, .mat-column-address {
flex: 1 1 15%; flex: 0 0 15%;
& .ellipsis-child { width: 15%;
white-space: nowrap; & .ellipsis-parent {
overflow: hidden; display: flex;
text-overflow: ellipsis;
} }
} }

@ -145,7 +145,8 @@ export const WALLET_ADDRESS_TYPE = {
WITNESS_PUBKEY_HASH: { name: 'Witness Pubkey Hash', tooltip: '' }, WITNESS_PUBKEY_HASH: { name: 'Witness Pubkey Hash', tooltip: '' },
NESTED_PUBKEY_HASH: { name: 'Nested Pubkey Hash', tooltip: '' }, NESTED_PUBKEY_HASH: { name: 'Nested Pubkey Hash', tooltip: '' },
UNUSED_WITNESS_PUBKEY_HASH: { name: 'Unused Witness Pubkey Hash', tooltip: '' }, UNUSED_WITNESS_PUBKEY_HASH: { name: 'Unused Witness Pubkey Hash', tooltip: '' },
UNUSED_NESTED_PUBKEY_HASH: { name: 'Unused Nested Pubkey Hash', tooltip: '' } UNUSED_NESTED_PUBKEY_HASH: { name: 'Unused Nested Pubkey Hash', tooltip: '' },
TAPROOT_PUBKEY: { name: 'Taproot Pubkey Hash', tooltip: '' }
}; };
export enum CLNFailReason { export enum CLNFailReason {
@ -932,16 +933,16 @@ export const LND_DEFAULT_PAGE_SETTINGS: PageSettings[] = [
export const LND_TABLES_DEF = { export const LND_TABLES_DEF = {
on_chain: { on_chain: {
utxos: { utxos: {
maxColumns: 5, maxColumns: 7,
allowedColumns: ['tx_id', 'output', 'label', 'amount_sat', 'confirmations'] allowedColumns: ['tx_id', 'output', 'label', 'address_type', 'address', 'amount_sat', 'confirmations']
}, },
transactions: { transactions: {
maxColumns: 7, maxColumns: 7,
allowedColumns: ['time_stamp', 'label', 'amount', 'total_fees', 'block_height', 'num_confirmations'] allowedColumns: ['time_stamp', 'label', 'amount', 'total_fees', 'block_height', 'num_confirmations']
}, },
dust_utxos: { dust_utxos: {
maxColumns: 5, maxColumns: 7,
allowedColumns: ['tx_id', 'output', 'label', 'amount_sat', 'confirmations'] allowedColumns: ['tx_id', 'output', 'label', 'address_type', 'address', 'amount_sat', 'confirmations']
} }
}, },
peers_channels: { peers_channels: {

Loading…
Cancel
Save