Merge pull request #3179 from mempool/mononaut/center-scroll

Center-align blockchain when resetting scroll position
This commit is contained in:
softsimon
2023-03-01 09:16:57 +04:00
committed by GitHub

View File

@@ -267,6 +267,7 @@ export class StartComponent implements OnInit, OnDestroy {
resetScroll(): void { resetScroll(): void {
this.scrollToBlock(this.chainTip); this.scrollToBlock(this.chainTip);
this.blockchainContainer.nativeElement.scrollLeft = 0;
} }
getPageIndexOf(height: number): number { getPageIndexOf(height: number): number {