mirror of
https://github.com/mempool/mempool.git
synced 2025-01-17 18:52:34 +01:00
Round medianFee instead of ceil
Minor ui fixes.
This commit is contained in:
parent
498df53f25
commit
53999dbea5
@ -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>
|
||||
|
@ -2,7 +2,7 @@
|
||||
color: #FFF;
|
||||
padding-top: 20px;
|
||||
padding-bottom: 3px;
|
||||
border-top: 5px solid #FFF;
|
||||
border-top: 3px solid #FFF;
|
||||
}
|
||||
|
||||
.td-width {
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -16,5 +16,5 @@
|
||||
color: #FFF;
|
||||
padding-top: 20px;
|
||||
padding-bottom: 3px;
|
||||
border-top: 5px solid #FFF;
|
||||
border-top: 3px solid #FFF;
|
||||
}
|
@ -5,7 +5,7 @@
|
||||
<a [routerLink]="['/mempool-block/', i]" class="blockLink"> </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>
|
||||
|
@ -132,8 +132,6 @@
|
||||
</div>
|
||||
</ng-template>
|
||||
|
||||
<br>
|
||||
|
||||
<h2>Inputs & Outputs</h2>
|
||||
|
||||
<app-transactions-list [transactions]="[tx]" [transactionPage]="true"></app-transactions-list>
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user