From d6703f715df18bdf7c9ad64063ea60028ee78421 Mon Sep 17 00:00:00 2001 From: HardiReady Date: Sat, 5 May 2018 09:14:49 +0200 Subject: [PATCH] Simplify highscore code and adjust font in table head --- .../campaign-player-detail.component.ts | 2 +- .../highscore/highscore.component.css | 4 ++++ .../highscore/highscore.component.html | 2 +- .../campaign/highscore/highscore.component.ts | 20 +++++++------------ .../war/scoreboard/scoreboard.component.css | 4 ++++ 5 files changed, 17 insertions(+), 15 deletions(-) diff --git a/static/src/app/statistic/campaign/campaign-player-detail/campaign-player-detail.component.ts b/static/src/app/statistic/campaign/campaign-player-detail/campaign-player-detail.component.ts index a84c77f..c0f6953 100644 --- a/static/src/app/statistic/campaign/campaign-player-detail/campaign-player-detail.component.ts +++ b/static/src/app/statistic/campaign/campaign-player-detail/campaign-player-detail.component.ts @@ -60,7 +60,7 @@ export class CampaignPlayerDetailComponent implements OnInit { this.campaignPlayer = campaignPlayer; this.graphData = [ - { key: 'kill', label: 'Kills', }, + { key: 'kill', label: 'Abschüsse', }, { key: 'friendlyFire', label: 'Friendly Fire', }, { key: 'death', label: 'Tode', }, { key: 'respawn', label: 'Respawn', }, diff --git a/static/src/app/statistic/campaign/highscore/highscore.component.css b/static/src/app/statistic/campaign/highscore/highscore.component.css index 6e8508b..da5284b 100644 --- a/static/src/app/statistic/campaign/highscore/highscore.component.css +++ b/static/src/app/statistic/campaign/highscore/highscore.component.css @@ -57,6 +57,10 @@ ngx-datatable { background-color: #f7f7f7; } +:host /deep/ .ngx-datatable.fixed-header .datatable-header .datatable-header-inner .datatable-header-cell { + margin: auto; +} + /* Table Scrollbar BEGIN */ :host /deep/ .ngx-datatable.scroll-vertical .datatable-body::-webkit-scrollbar { diff --git a/static/src/app/statistic/campaign/highscore/highscore.component.html b/static/src/app/statistic/campaign/highscore/highscore.component.html index e739427..475e567 100644 --- a/static/src/app/statistic/campaign/highscore/highscore.component.html +++ b/static/src/app/statistic/campaign/highscore/highscore.component.html @@ -15,7 +15,7 @@ -
+