From ffe02c250953a980b0df40e7f0cc96081e754390 Mon Sep 17 00:00:00 2001 From: nymkappa <1612910616@pm.me> Date: Thu, 23 Feb 2023 16:01:56 +0900 Subject: [PATCH] Fix lightning chart widget layout --- .../nodes-networks-chart/nodes-networks-chart.component.ts | 6 +++--- .../lightning-statistics-chart.component.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/app/lightning/nodes-networks-chart/nodes-networks-chart.component.ts b/frontend/src/app/lightning/nodes-networks-chart/nodes-networks-chart.component.ts index 20ce5cc6f..0ff9f4af1 100644 --- a/frontend/src/app/lightning/nodes-networks-chart/nodes-networks-chart.component.ts +++ b/frontend/src/app/lightning/nodes-networks-chart/nodes-networks-chart.component.ts @@ -130,7 +130,7 @@ export class NodesNetworksChartComponent implements OnInit { }, text: $localize`:@@b420668a91f8ebaf6e6409c4ba87f1d45961d2bd:Lightning Nodes Per Network`, left: 'center', - top: 11, + top: 0, zlevel: 10, }; } @@ -227,8 +227,8 @@ export class NodesNetworksChartComponent implements OnInit { title: title, animation: false, grid: { - height: this.widget ? 100 : undefined, - top: this.widget ? 10 : 40, + height: this.widget ? 90 : undefined, + top: this.widget ? 20 : 40, bottom: this.widget ? 0 : 70, right: (isMobile() && this.widget) ? 35 : this.right, left: (isMobile() && this.widget) ? 40 :this.left, diff --git a/frontend/src/app/lightning/statistics-chart/lightning-statistics-chart.component.ts b/frontend/src/app/lightning/statistics-chart/lightning-statistics-chart.component.ts index 916483781..b93ee1f3d 100644 --- a/frontend/src/app/lightning/statistics-chart/lightning-statistics-chart.component.ts +++ b/frontend/src/app/lightning/statistics-chart/lightning-statistics-chart.component.ts @@ -121,7 +121,7 @@ export class LightningStatisticsChartComponent implements OnInit { }, text: $localize`:@@ea8db27e6db64f8b940711948c001a1100e5fe9f:Lightning Network Capacity`, left: 'center', - top: 11, + top: 0, zlevel: 10, }; } @@ -137,8 +137,8 @@ export class LightningStatisticsChartComponent implements OnInit { ]), ], grid: { - height: this.widget ? 100 : undefined, - top: this.widget ? 10 : 40, + height: this.widget ? 90 : undefined, + top: this.widget ? 20 : 40, bottom: this.widget ? 0 : 70, right: (isMobile() && this.widget) ? 35 : this.right, left: (isMobile() && this.widget) ? 40 :this.left,