mirror of
https://github.com/mempool/mempool.git
synced 2025-02-27 08:10:05 +01:00
Fix transaction amount overflow
This commit is contained in:
parent
5977251a20
commit
3db1486bfb
2 changed files with 12 additions and 3 deletions
|
@ -77,7 +77,7 @@
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="text-right nowrap amount">
|
<td class="text-right nowrap amount" [class]="{large: vin?.prevout?.value > 1000000}">
|
||||||
<ng-template [ngIf]="vin.prevout && vin.prevout.asset && vin.prevout.asset !== nativeAssetId" [ngIfElse]="defaultOutput">
|
<ng-template [ngIf]="vin.prevout && vin.prevout.asset && vin.prevout.asset !== nativeAssetId" [ngIfElse]="defaultOutput">
|
||||||
<div *ngIf="assetsMinimal && assetsMinimal[vin.prevout.asset] else assetVinNotFound">
|
<div *ngIf="assetsMinimal && assetsMinimal[vin.prevout.asset] else assetVinNotFound">
|
||||||
<ng-container *ngTemplateOutlet="assetBox; context:{ $implicit: vin.prevout }"></ng-container>
|
<ng-container *ngTemplateOutlet="assetBox; context:{ $implicit: vin.prevout }"></ng-container>
|
||||||
|
@ -206,7 +206,7 @@
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</td>
|
</td>
|
||||||
<td class="text-right nowrap amount">
|
<td class="text-right nowrap amount" [class]="{large: vout?.value > 1000000}">
|
||||||
<ng-template [ngIf]="vout.asset && vout.asset !== nativeAssetId" [ngIfElse]="defaultOutput">
|
<ng-template [ngIf]="vout.asset && vout.asset !== nativeAssetId" [ngIfElse]="defaultOutput">
|
||||||
<div *ngIf="assetsMinimal && assetsMinimal[vout.asset] else assetNotFound">
|
<div *ngIf="assetsMinimal && assetsMinimal[vout.asset] else assetNotFound">
|
||||||
<ng-container *ngTemplateOutlet="assetBox; context:{ $implicit: vout }"></ng-container>
|
<ng-container *ngTemplateOutlet="assetBox; context:{ $implicit: vout }"></ng-container>
|
||||||
|
|
|
@ -46,7 +46,16 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
td.amount {
|
td.amount {
|
||||||
width: 32.5%;
|
width: 36%;
|
||||||
|
@media (max-width: 576px) {
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
td.amount.large {
|
||||||
|
width: 45%;
|
||||||
|
@media (max-width: 576px) {
|
||||||
|
width: 60%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.extra-info {
|
.extra-info {
|
||||||
|
|
Loading…
Add table
Reference in a new issue