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
commit 43e0c7e0d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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