New mining dashboard graph height

This commit is contained in:
softsimon 2024-02-08 21:01:24 +08:00
parent fdad3d1fd5
commit 9d6231b6e5
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7

View File

@ -11,7 +11,7 @@ import { EventType, NavigationStart, Router } from '@angular/router';
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
}) })
export class MiningDashboardComponent implements OnInit, AfterViewInit { export class MiningDashboardComponent implements OnInit, AfterViewInit {
graphHeight = 300; graphHeight = 375;
constructor( constructor(
private seoService: SeoService, private seoService: SeoService,
@ -42,7 +42,7 @@ export class MiningDashboardComponent implements OnInit, AfterViewInit {
@HostListener('window:resize', ['$event']) @HostListener('window:resize', ['$event'])
onResize(): void { onResize(): void {
if (window.innerWidth >= 992) { if (window.innerWidth >= 992) {
this.graphHeight = 340; this.graphHeight = 375;
} else if (window.innerWidth >= 768) { } else if (window.innerWidth >= 768) {
this.graphHeight = 245; this.graphHeight = 245;
} else { } else {