Footer and header design updates.

This commit is contained in:
Simon Lindh
2020-02-24 03:42:29 +07:00
committed by wiz
parent c8c1be594b
commit d690511a08
23 changed files with 114 additions and 82 deletions

View File

@@ -1,6 +1,6 @@
<div class="container">
<app-blockchain position="top" [txFeePerVSize]="tx?.status?.block_height ? 0 : tx?.fee / (tx?.weight / 4)" [markHeight]="tx?.status?.block_height"></app-blockchain>
<app-blockchain position="top" [txFeePerVSize]="tx?.fee / (tx?.weight / 4)" [markHeight]="tx?.status?.block_height"></app-blockchain>
<div class="title-block">
<h1 style="float: left;">Transaction</h1>

View File

@@ -38,6 +38,7 @@ export class TransactionComponent implements OnInit, OnDestroy {
this.txId = params.get('id') || '';
this.error = undefined;
this.isLoadingTx = true;
document.body.scrollTo(0, 0);
if (history.state.data) {
return of(history.state.data);
} else {
@@ -48,7 +49,6 @@ export class TransactionComponent implements OnInit, OnDestroy {
.subscribe((tx: Transaction) => {
this.tx = tx;
this.isLoadingTx = false;
document.body.scrollTo({ top: 0, behavior: 'smooth' });
if (!tx.status.confirmed) {
this.websocketService.startTrackTransaction(tx.txid);