mirror of
https://github.com/mempool/mempool.git
synced 2025-03-30 04:32:06 +02:00
Merge pull request #4664 from mempool/simon/liquid-mining-dashboard-heights
Fixed liquid and mining dashboard graph heights
This commit is contained in:
commit
d745bf3f9e
@ -20,7 +20,7 @@ export class LbtcPegsGraphComponent implements OnInit, OnChanges {
|
|||||||
@Input() data: any;
|
@Input() data: any;
|
||||||
pegsChartOptions: EChartsOption;
|
pegsChartOptions: EChartsOption;
|
||||||
|
|
||||||
height: number | string = '200';
|
height: number | string = '320';
|
||||||
right: number | string = '10';
|
right: number | string = '10';
|
||||||
top: number | string = '20';
|
top: number | string = '20';
|
||||||
left: number | string = '50';
|
left: number | string = '50';
|
||||||
|
@ -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 {
|
||||||
|
@ -187,7 +187,7 @@
|
|||||||
<ng-template #loadingAssetsTable>
|
<ng-template #loadingAssetsTable>
|
||||||
<table class="table table-borderless table-striped asset-table">
|
<table class="table table-borderless table-striped asset-table">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr *ngFor="let i of [1,2,3,4]">
|
<tr *ngFor="let i of [1,2,3,4,5,6]">
|
||||||
<td class="asset-icon">
|
<td class="asset-icon">
|
||||||
<div class="skeleton-loader skeleton-loader-transactions"></div>
|
<div class="skeleton-loader skeleton-loader-transactions"></div>
|
||||||
</td>
|
</td>
|
||||||
|
@ -162,7 +162,7 @@ export class DashboardComponent implements OnInit, OnDestroy, AfterViewInit {
|
|||||||
newArray.push(feature);
|
newArray.push(feature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return newArray.slice(0, 4);
|
return newArray.slice(0, 6);
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user