mirror of
https://github.com/mempool/mempool.git
synced 2025-03-13 11:36:07 +01:00
Merge pull request #840 from MiguelMedeiros/fix-confirmation-button-position
Fix confirmations button positioning.
This commit is contained in:
commit
d72dbc1415
2 changed files with 20 additions and 5 deletions
|
@ -8,9 +8,9 @@
|
|||
<span class="d-none d-lg-inline">{{ rbfTransaction.txid }}</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
<div class="title float-left">
|
||||
<div class="title">
|
||||
<h1 i18n="shared.transaction">Transaction</h1>
|
||||
</div>
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
|||
<app-clipboard [text]="txId"></app-clipboard>
|
||||
</div>
|
||||
|
||||
<div class="container-buttons float-right">
|
||||
<div class="container-buttons">
|
||||
<ng-template [ngIf]="tx?.status?.confirmed">
|
||||
<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>
|
||||
|
@ -41,7 +41,7 @@
|
|||
<ng-template [ngIf]="!isLoadingTx && !error">
|
||||
|
||||
<ng-template [ngIf]="tx.status.confirmed" [ngIfElse]="unconfirmedTemplate">
|
||||
|
||||
|
||||
<div class="box">
|
||||
<div class="row">
|
||||
<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>
|
||||
<div class="spinner-border text-light mt-2"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<ng-template #errorTemplate>
|
||||
<div class="text-center">
|
||||
<h3>{{ error.error }}</h3>
|
||||
|
|
|
@ -773,6 +773,21 @@ th {
|
|||
@extend .mempool-graph;
|
||||
direction: ltr;
|
||||
}
|
||||
.title-block {
|
||||
.title {
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
.container-buttons {
|
||||
float: left !important;
|
||||
width: auto !important;
|
||||
}
|
||||
.tx-link {
|
||||
margin-right: 0px;
|
||||
@media (min-width: 768px) {
|
||||
margin-right: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue