From fdad3d1fd5c58fd6e6be8e9c516047c84f67c216 Mon Sep 17 00:00:00 2001 From: softsimon Date: Thu, 8 Feb 2024 20:56:16 +0800 Subject: [PATCH 1/2] Fixing new liquid dashboard height --- .../app/components/lbtc-pegs-graph/lbtc-pegs-graph.component.ts | 2 +- frontend/src/app/dashboard/dashboard.component.html | 2 +- frontend/src/app/dashboard/dashboard.component.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/components/lbtc-pegs-graph/lbtc-pegs-graph.component.ts b/frontend/src/app/components/lbtc-pegs-graph/lbtc-pegs-graph.component.ts index 0f6f115ff..e2231e7ce 100644 --- a/frontend/src/app/components/lbtc-pegs-graph/lbtc-pegs-graph.component.ts +++ b/frontend/src/app/components/lbtc-pegs-graph/lbtc-pegs-graph.component.ts @@ -20,7 +20,7 @@ export class LbtcPegsGraphComponent implements OnInit, OnChanges { @Input() data: any; pegsChartOptions: EChartsOption; - height: number | string = '200'; + height: number | string = '320'; right: number | string = '10'; top: number | string = '20'; left: number | string = '50'; diff --git a/frontend/src/app/dashboard/dashboard.component.html b/frontend/src/app/dashboard/dashboard.component.html index 16c1af36d..9ebc22dd4 100644 --- a/frontend/src/app/dashboard/dashboard.component.html +++ b/frontend/src/app/dashboard/dashboard.component.html @@ -187,7 +187,7 @@ - + diff --git a/frontend/src/app/dashboard/dashboard.component.ts b/frontend/src/app/dashboard/dashboard.component.ts index c762d309f..cd393e89f 100644 --- a/frontend/src/app/dashboard/dashboard.component.ts +++ b/frontend/src/app/dashboard/dashboard.component.ts @@ -162,7 +162,7 @@ export class DashboardComponent implements OnInit, OnDestroy, AfterViewInit { newArray.push(feature); } } - return newArray.slice(0, 4); + return newArray.slice(0, 6); }), ); From 9d6231b6e57c3770a101a23b42cb8013ecc2286d Mon Sep 17 00:00:00 2001 From: softsimon Date: Thu, 8 Feb 2024 21:01:24 +0800 Subject: [PATCH 2/2] New mining dashboard graph height --- .../components/mining-dashboard/mining-dashboard.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/components/mining-dashboard/mining-dashboard.component.ts b/frontend/src/app/components/mining-dashboard/mining-dashboard.component.ts index 1a446d673..0a72386cb 100644 --- a/frontend/src/app/components/mining-dashboard/mining-dashboard.component.ts +++ b/frontend/src/app/components/mining-dashboard/mining-dashboard.component.ts @@ -11,7 +11,7 @@ import { EventType, NavigationStart, Router } from '@angular/router'; changeDetection: ChangeDetectionStrategy.OnPush, }) export class MiningDashboardComponent implements OnInit, AfterViewInit { - graphHeight = 300; + graphHeight = 375; constructor( private seoService: SeoService, @@ -42,7 +42,7 @@ export class MiningDashboardComponent implements OnInit, AfterViewInit { @HostListener('window:resize', ['$event']) onResize(): void { if (window.innerWidth >= 992) { - this.graphHeight = 340; + this.graphHeight = 375; } else if (window.innerWidth >= 768) { this.graphHeight = 245; } else {