Fix confirmations button positioning.

This commit is contained in:
Miguel Medeiros 2021-09-28 21:09:36 -03:00
parent 18e0a17d26
commit c72c287b27
No known key found for this signature in database
GPG Key ID: 819EDEE4673F3EBB

View File

@ -8,9 +8,9 @@
<span class="d-none d-lg-inline">{{ rbfTransaction.txid }}</span> <span class="d-none d-lg-inline">{{ rbfTransaction.txid }}</span>
</a> </a>
</div> </div>
<div> <div>
<div class="title float-left"> <div class="title">
<h1 i18n="shared.transaction">Transaction</h1> <h1 i18n="shared.transaction">Transaction</h1>
</div> </div>
@ -22,7 +22,7 @@
<app-clipboard [text]="txId"></app-clipboard> <app-clipboard [text]="txId"></app-clipboard>
</div> </div>
<div class="container-buttons float-right"> <div class="container-buttons">
<ng-template [ngIf]="tx?.status?.confirmed"> <ng-template [ngIf]="tx?.status?.confirmed">
<button *ngIf="latestBlock" type="button" class="btn btn-sm btn-success"> <button *ngIf="latestBlock" type="button" class="btn btn-sm btn-success">
<ng-container *ngTemplateOutlet="latestBlock.height - tx.status.block_height + 1 == 1 ? confirmationSingular : confirmationPlural; context: {$implicit: latestBlock.height - tx.status.block_height + 1}"></ng-container> <ng-container *ngTemplateOutlet="latestBlock.height - tx.status.block_height + 1 == 1 ? confirmationSingular : confirmationPlural; context: {$implicit: latestBlock.height - tx.status.block_height + 1}"></ng-container>
@ -41,7 +41,7 @@
<ng-template [ngIf]="!isLoadingTx && !error"> <ng-template [ngIf]="!isLoadingTx && !error">
<ng-template [ngIf]="tx.status.confirmed" [ngIfElse]="unconfirmedTemplate"> <ng-template [ngIf]="tx.status.confirmed" [ngIfElse]="unconfirmedTemplate">
<div class="box"> <div class="box">
<div class="row"> <div class="row">
<div class="col-sm"> <div class="col-sm">
@ -309,7 +309,7 @@
<h5 i18n="transaction.error.waiting-for-it-to-appear">Waiting for it to appear in the mempool...</h5> <h5 i18n="transaction.error.waiting-for-it-to-appear">Waiting for it to appear in the mempool...</h5>
<div class="spinner-border text-light mt-2"></div> <div class="spinner-border text-light mt-2"></div>
</div> </div>
<ng-template #errorTemplate> <ng-template #errorTemplate>
<div class="text-center"> <div class="text-center">
<h3>{{ error.error }}</h3> <h3>{{ error.error }}</h3>