Fix responsiveness.

This commit is contained in:
softsimon 2020-07-16 14:36:02 +07:00
parent 87e56e2975
commit c5759be3ee
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7
3 changed files with 51 additions and 45 deletions

View File

@ -4,24 +4,24 @@
<div class="clearfix"></div> <div class="clearfix"></div>
<table class="table table-borderless table-striped"> <div class="table-responsive-sm">
<thead> <table class="table table-borderless table-striped">
<th style="width: 20%;">Hash</th> <thead>
<th style="width: 20%;">Total Sent (BSQ)</th> <th style="width: 25%;">Height</th>
<th style="width: 20%;">Transactions</th> <th style="width: 25%;">Timestamp</th>
<th style="width: 20%;">Height</th> <th style="width: 25%;">Total Sent (BSQ)</th>
<th style="width: 20%;">Time</th> <th style="width: 25%;">Transactions</th>
</thead> </thead>
<tbody *ngIf="!isLoading; else loadingTmpl"> <tbody *ngIf="!isLoading; else loadingTmpl">
<tr *ngFor="let block of blocks; trackBy: trackByFn"> <tr *ngFor="let block of blocks; trackBy: trackByFn">
<td><a [routerLink]="['/block/' | relativeUrl, block.hash]" title="{{ block.hash }}" [state]="{ data: { block: block } }">{{ block.hash | shortenString : 13 }}</a></td> <td><a [routerLink]="['/block/' | relativeUrl, block.hash]" [state]="{ data: { block: block } }">{{ block.height }}</a></td>
<td>{{ calculateTotalOutput(block) / 100 | number: '1.2-2' }}</td> <td>{{ block.time | date:'yyyy-MM-dd HH:mm' }}</td>
<td>{{ block.txs.length }}</td> <td>{{ calculateTotalOutput(block) / 100 | number: '1.2-2' }}</td>
<td><a [routerLink]="['/block/' | relativeUrl, block.hash]" [state]="{ data: { block: block } }">{{ block.height }}</a></td> <td>{{ block.txs.length }}</td>
<td>{{ block.time | date:'yyyy-MM-dd HH:mm' }}</td> </tr>
</tr> </tbody>
</tbody> </table>
</table> </div>
<br> <br>

View File

@ -4,33 +4,35 @@
<div class="clearfix"></div> <div class="clearfix"></div>
<table class="table table-borderless table-striped"> <div class="table-responsive-sm">
<thead> <table class="table table-borderless table-striped">
<th style="width: 18%;">Transaction</th> <thead>
<th style="width: 20%;">Type</th> <th style="width: 18%;">Transaction</th>
<th style="width: 15%;">Total Sent (BSQ)</th> <th style="width: 20%;">Type</th>
<th style="width: 10%;">Outputs</th> <th style="width: 15%;">Total Sent (BSQ)</th>
<th style="width: 12%;">Block Height</th> <th style="width: 10%;">Outputs</th>
<th style="width: 15%;">Block Time</th> <th style="width: 12%;">Block Height</th>
</thead> <th style="width: 15%;">Block Time</th>
<tbody *ngIf="!isLoading; else loadingTmpl"> </thead>
<tr *ngFor="let tx of transactions; trackBy: trackByFn"> <tbody *ngIf="!isLoading; else loadingTmpl">
<td><a [routerLink]="['/tx/' | relativeUrl, tx.id]" [state]="{ data: tx }">{{ tx.id | shortenString : 16 }}</a></td> <tr *ngFor="let tx of transactions; trackBy: trackByFn">
<td><app-bisq-icon class="mr-1" [txType]="tx.txType"></app-bisq-icon> {{ tx.txTypeDisplayString }}</td> <td><a [routerLink]="['/tx/' | relativeUrl, tx.id]" [state]="{ data: tx }">{{ tx.id | shortenString : 16 }}</a></td>
<td> <td><app-bisq-icon class="mr-1" [txType]="tx.txType"></app-bisq-icon> {{ tx.txTypeDisplayString }}</td>
<ng-template [ngIf]="tx.txType === 'PAY_TRADE_FEE'" [ngIfElse]="defaultTxType"> <td>
{{ tx.burntFee / 100 | number: '1.2-2' }} <ng-template [ngIf]="tx.txType === 'PAY_TRADE_FEE'" [ngIfElse]="defaultTxType">
</ng-template> {{ tx.burntFee / 100 | number: '1.2-2' }}
<ng-template #defaultTxType> </ng-template>
{{ calculateTotalOutput(tx.outputs) / 100 | number: '1.2-2' }} <ng-template #defaultTxType>
</ng-template> {{ calculateTotalOutput(tx.outputs) / 100 | number: '1.2-2' }}
</td> </ng-template>
<td>{{ tx.outputs.length }}</td> </td>
<td><a [routerLink]="['/block/' | relativeUrl, tx.blockHash]">{{ tx.blockHeight }}</a></td> <td>{{ tx.outputs.length }}</td>
<td>{{ tx.time | date:'yyyy-MM-dd HH:mm' }}</td> <td><a [routerLink]="['/block/' | relativeUrl, tx.blockHash]">{{ tx.blockHeight }}</a></td>
</tr> <td>{{ tx.time | date:'yyyy-MM-dd HH:mm' }}</td>
</tbody> </tr>
</table> </tbody>
</table>
</div>
<br> <br>

View File

@ -416,3 +416,7 @@ h1, h2, h3 {
background-color: #653b9c; background-color: #653b9c;
border-color: #3a1c61; border-color: #3a1c61;
} }
th {
white-space: nowrap;
}