Renaming Mempool blocks to "next block" + ux fixes

This commit is contained in:
softsimon
2020-03-25 03:59:30 +07:00
parent 628df1a972
commit 05d4eb7696
6 changed files with 27 additions and 15 deletions

View File

@@ -25,6 +25,8 @@ export class MempoolBlocksComponent implements OnInit, OnDestroy {
markIndex: number;
txFeePerVSize: number;
resetTransitionTimeout: number;
constructor(
private router: Router,
private stateService: StateService,
@@ -133,10 +135,11 @@ export class MempoolBlocksComponent implements OnInit, OnDestroy {
this.arrowVisible = false;
return;
} else if (this.markIndex > -1) {
clearTimeout(this.resetTransitionTimeout);
this.transition = 'inherit';
this.rightPosition = this.markIndex * (this.blockWidth + this.blockPadding) + 0.5 * this.blockWidth;
this.arrowVisible = true;
setTimeout(() => this.transition = '1s');
this.resetTransitionTimeout = window.setTimeout(() => this.transition = '1s', 100);
return;
}