Round medianFee instead of ceil

Minor ui fixes.
This commit is contained in:
softsimon 2020-04-09 15:23:46 +07:00
parent 498df53f25
commit 53999dbea5
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7
8 changed files with 8 additions and 10 deletions

View File

@ -44,7 +44,7 @@
</tr>
<tr *ngIf="block.medianFee !== undefined">
<td>Median fee</td>
<td>~{{ block.medianFee | ceil }} sats/vB (<app-fiat [value]="block.medianFee * 250" digitsInfo="1.2-2"></app-fiat>)</td>
<td>~{{ block.medianFee | number:'1.0-0' }} sats/vB (<app-fiat [value]="block.medianFee * 250" digitsInfo="1.2-2"></app-fiat>)</td>
</tr>
<ng-template [ngIf]="fees !== undefined" [ngIfElse]="loadingFees">
<tr>

View File

@ -2,7 +2,7 @@
color: #FFF;
padding-top: 20px;
padding-bottom: 3px;
border-top: 5px solid #FFF;
border-top: 3px solid #FFF;
}
.td-width {

View File

@ -7,7 +7,7 @@
</div>
<div class="block-body">
<div class="fees">
<span class="yellow-color">~{{ block.medianFee | ceil }} sats/vB</span>
<span class="yellow-color">~{{ block.medianFee | number:'1.0-0' }} sats/vB</span>
</div>
<div class="block-size">{{ block.size | bytes: 2 }}</div>
<div class="transaction-count">{{ block.tx_count | number }} transactions</div>

View File

@ -11,11 +11,11 @@
<tbody>
<tr>
<td>Median fee</td>
<td>~{{ mempoolBlock.medianFee | ceil }} sats/vB (<app-fiat [value]="mempoolBlock.medianFee * 250" digitsInfo="1.2-2"></app-fiat>)</td>
<td>~{{ mempoolBlock.medianFee | number:'1.0-0' }} sats/vB (<app-fiat [value]="mempoolBlock.medianFee * 250" digitsInfo="1.2-2"></app-fiat>)</td>
</tr>
<tr>
<td>Fee span</td>
<td><span class="yellow-color">{{ mempoolBlock.feeRange[0] | ceil }} - {{ mempoolBlock.feeRange[mempoolBlock.feeRange.length - 1] | ceil }} sat/vB</span></td>
<td><span class="yellow-color">{{ mempoolBlock.feeRange[0] | number:'1.0-0' }} - {{ mempoolBlock.feeRange[mempoolBlock.feeRange.length - 1] | number:'1.0-0' }} sat/vB</span></td>
</tr>
<tr>
<td>Total fees</td>

View File

@ -16,5 +16,5 @@
color: #FFF;
padding-top: 20px;
padding-bottom: 3px;
border-top: 5px solid #FFF;
border-top: 3px solid #FFF;
}

View File

@ -5,7 +5,7 @@
<a [routerLink]="['/mempool-block/', i]" class="blockLink">&nbsp;</a>
<div class="block-body" *ngIf="mempoolBlocks?.length">
<div class="fees">
<span class="yellow-color">~{{ projectedBlock.medianFee | ceil }} sats/vB</span>
<span class="yellow-color">~{{ projectedBlock.medianFee | number:'1.0-0' }} sats/vB</span>
</div>
<div class="block-size">{{ projectedBlock.blockSize | bytes: 2 }}</div>
<div class="transaction-count">{{ projectedBlock.nTx }} transactions</div>

View File

@ -132,8 +132,6 @@
</div>
</ng-template>
<br>
<h2>Inputs & Outputs</h2>
<app-transactions-list [transactions]="[tx]" [transactionPage]="true"></app-transactions-list>

View File

@ -5,7 +5,7 @@
.title-block {
color: #FFF;
padding-top: 20px;
border-top: 5px solid #FFF;
border-top: 3px solid #FFF;
}
@media (max-width: 767.98px) {