mirror of
https://github.com/mempool/mempool.git
synced 2025-02-25 15:10:12 +01:00
Align acceleration pie chart
This commit is contained in:
parent
d175c34e5b
commit
d45104f7c9
3 changed files with 17 additions and 3 deletions
|
@ -4,8 +4,11 @@
|
||||||
<table>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-width field-label" i18n="transaction.accelerated-to-feerate|Accelerated to feerate">Accelerated to</td>
|
<td class="td-width field-label" [class]="isMobile() ? 'mobile' : ''" i18n="transaction.accelerated-to-feerate|Accelerated to feerate">Accelerated to</td>
|
||||||
<td class="field-value">
|
<td class="pie-chart" rowspan="2" *ngIf="isMobile()">
|
||||||
|
<ng-container *ngTemplateOutlet="pieChart"></ng-container>
|
||||||
|
</td>
|
||||||
|
<td class="field-value" [class]="isMobile() ? 'mobile' : ''">
|
||||||
<div class="effective-fee-container">
|
<div class="effective-fee-container">
|
||||||
@if (accelerationInfo?.acceleratedFeeRate && (!tx.effectiveFeePerVsize || accelerationInfo.acceleratedFeeRate >= tx.effectiveFeePerVsize)) {
|
@if (accelerationInfo?.acceleratedFeeRate && (!tx.effectiveFeePerVsize || accelerationInfo.acceleratedFeeRate >= tx.effectiveFeePerVsize)) {
|
||||||
<app-fee-rate [fee]="accelerationInfo.acceleratedFeeRate"></app-fee-rate>
|
<app-fee-rate [fee]="accelerationInfo.acceleratedFeeRate"></app-fee-rate>
|
||||||
|
@ -14,7 +17,7 @@
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="pie-chart" rowspan="2">
|
<td class="pie-chart" rowspan="2" *ngIf="!isMobile()">
|
||||||
<ng-container *ngTemplateOutlet="pieChart"></ng-container>
|
<ng-container *ngTemplateOutlet="pieChart"></ng-container>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -16,6 +16,9 @@
|
||||||
width: auto;
|
width: auto;
|
||||||
min-width: auto;
|
min-width: auto;
|
||||||
}
|
}
|
||||||
|
&.mobile {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.field-value {
|
.field-value {
|
||||||
|
@ -23,6 +26,10 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.mobile {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.hashrate-label {
|
.hashrate-label {
|
||||||
@media (max-width: 420px) {
|
@media (max-width: 420px) {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
|
@ -128,4 +128,8 @@ export class ActiveAccelerationBox implements OnChanges {
|
||||||
}
|
}
|
||||||
this.chartInstance = ec;
|
this.chartInstance = ec;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
isMobile() {
|
||||||
|
return window.innerWidth <= 767.98;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue