diff --git a/static/src/app/statistic/war/scoreboard/scoreboard.component.css b/static/src/app/statistic/war/scoreboard/scoreboard.component.css index 7866a87..425e024 100644 --- a/static/src/app/statistic/war/scoreboard/scoreboard.component.css +++ b/static/src/app/statistic/war/scoreboard/scoreboard.component.css @@ -27,7 +27,7 @@ } .mat-column-kill, .mat-column-friendlyFire, .mat-column-revive, .mat-column-flagTouch, .mat-column-vehicleLight, -.mat-column-vehicleHeavy, .mat-column-vehicleAir, .mat-column-travelDistance, .mat-column-pilotDistance, +.mat-column-vehicleHeavy, .mat-column-vehicleAir, .mat-column-travelDistance, .mat-column-driverDistance, .mat-column-death, .mat-column-respawn, .mat-column-interact { flex: 0 0 62px; } diff --git a/static/src/app/statistic/war/scoreboard/scoreboard.component.ts b/static/src/app/statistic/war/scoreboard/scoreboard.component.ts index e26843d..4cdc8e3 100644 --- a/static/src/app/statistic/war/scoreboard/scoreboard.component.ts +++ b/static/src/app/statistic/war/scoreboard/scoreboard.component.ts @@ -53,9 +53,9 @@ export class ScoreboardComponent implements OnChanges { ngOnChanges(changes: SimpleChanges) { if (changes.war) { this.war.players.forEach(player => { - // meters to kilometer or fill with null, since optional - player.travelDistance = player.travelDistance ? Math.round(player.travelDistance /1000) : 0; - player.driverDistance = player.driverDistance ? Math.round(player.driverDistance /1000) : 0; + // meters to kilometer or fill with null, since optional + player.travelDistance = player.travelDistance ? Math.round(player.travelDistance / 1000) : 0; + player.driverDistance = player.driverDistance ? Math.round(player.driverDistance / 1000) : 0; }); this.rows = changes.war.currentValue.players; diff --git a/static/src/app/statistic/war/war-header/war-header.component.css b/static/src/app/statistic/war/war-header/war-header.component.css index 605fbc3..f382cf3 100644 --- a/static/src/app/statistic/war/war-header/war-header.component.css +++ b/static/src/app/statistic/war/war-header/war-header.component.css @@ -50,6 +50,10 @@ span.tab-control { border-bottom: 0; } +.nav-tab-hidden { + visibility: hidden; +} + .nav-tabs > li > a { background: #e7e7e7; border: 1px solid #dadada; diff --git a/static/src/app/statistic/war/war-header/war-header.component.html b/static/src/app/statistic/war/war-header/war-header.component.html index 673a9a6..0de5b31 100644 --- a/static/src/app/statistic/war/war-header/war-header.component.html +++ b/static/src/app/statistic/war/war-header/war-header.component.html @@ -2,9 +2,11 @@

{{'stats.scoreboard.standings' | translate}}

- {{fraction.BLUFOR}} {{war.ptBlufor}} + {{fraction.BLUFOR}} {{war.ptBlufor}} | - {{war.ptOpfor}} {{fraction.OPFOR}} + {{war.ptOpfor}} {{fraction.OPFOR}}
@@ -48,9 +50,10 @@ {{'stats.scoreboard.tab.player' | translate}} -