From 0fa09b56dccbe2d54e2e8b1ba58f26c71e26d696 Mon Sep 17 00:00:00 2001 From: HardiReady Date: Wed, 27 Feb 2019 22:53:24 +0100 Subject: [PATCH] Improve responsive view --- .../campaign/overview/campaign-overview.component.scss | 3 ++- .../src/app/statistic/war/scoreboard/scoreboard.component.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/static/src/app/statistic/campaign/overview/campaign-overview.component.scss b/static/src/app/statistic/campaign/overview/campaign-overview.component.scss index 244827d..d30640d 100644 --- a/static/src/app/statistic/campaign/overview/campaign-overview.component.scss +++ b/static/src/app/statistic/campaign/overview/campaign-overview.component.scss @@ -10,7 +10,8 @@ .slide-chart-container { width: 100%; min-width: unset; - padding-top: 105px; + margin-top: 105px; + margin-bottom: 35px; } .chart-select-group { diff --git a/static/src/app/statistic/war/scoreboard/scoreboard.component.ts b/static/src/app/statistic/war/scoreboard/scoreboard.component.ts index 6fb53a7..e7e0138 100644 --- a/static/src/app/statistic/war/scoreboard/scoreboard.component.ts +++ b/static/src/app/statistic/war/scoreboard/scoreboard.component.ts @@ -49,7 +49,7 @@ export class ScoreboardComponent implements OnChanges { } ngOnChanges(changes: SimpleChanges) { - if (changes['isSmallLayout'] && changes['isSmallLayout'].previousValue != changes['isSmallLayout'].currentValue) { + if (changes['isSmallLayout'] && changes['isSmallLayout'].previousValue !== changes['isSmallLayout'].currentValue) { const colIdxFraction = this.displayedColumns.findIndex(c => c === 'fraction'); if (this.isSmallLayout) { this.displayedColumns.splice(colIdxFraction, 1);