align block arrows & reposition selected block pool tag

This commit is contained in:
Mononaut
2024-07-10 08:15:29 +00:00
parent a530b70f9f
commit e054e1d5a3
5 changed files with 29 additions and 11 deletions

View File

@@ -5,6 +5,7 @@ import { specialBlocks } from '../../app.constants';
import { BlockExtended } from '../../interfaces/node-api.interface';
import { Location } from '@angular/common';
import { CacheService } from '../../services/cache.service';
import { nextTick } from 'process';
interface BlockchainBlock extends BlockExtended {
placeholder?: boolean;
@@ -58,6 +59,7 @@ export class BlockchainBlocksComponent implements OnInit, OnChanges, OnDestroy {
arrowLeftPx = 30;
blocksFilled = false;
arrowTransition = '1s';
animatePoolTag = false;
timeLtrSubscription: Subscription;
timeLtr: boolean;
@@ -186,6 +188,9 @@ export class BlockchainBlocksComponent implements OnInit, OnChanges, OnDestroy {
.subscribe((state) => {
this.markHeight = undefined;
if (state.blockHeight !== undefined) {
nextTick(() => {
this.animatePoolTag = true;
});
this.markHeight = state.blockHeight;
}
this.moveArrowToPosition(false);