Improve performance tab hiding (CC-80); Fix scoreboard table mis-alignment (CC-33)
parent
b3c68f72ba
commit
1d91f8efba
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -54,8 +54,8 @@ export class ScoreboardComponent implements OnChanges {
|
|||
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;
|
||||
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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -2,9 +2,11 @@
|
|||
<div class="war-header-container">
|
||||
<div class="pull-left head-field" style="width: 250px">
|
||||
<h4>{{'stats.scoreboard.standings' | translate}}</h4>
|
||||
<span [style.color]="fraction.COLOR_BLUFOR" style="font-weight: bold; margin-right: 10px">{{fraction.BLUFOR}} {{war.ptBlufor}}</span>
|
||||
<span [style.color]="fraction.COLOR_BLUFOR"
|
||||
style="font-weight: bold; margin-right: 10px">{{fraction.BLUFOR}} {{war.ptBlufor}}</span>
|
||||
<span style="font-size: x-large">|</span>
|
||||
<span [style.color]="fraction.COLOR_OPFOR" style="font-weight: bold; margin-left: 10px;">{{war.ptOpfor}} {{fraction.OPFOR}}</span>
|
||||
<span [style.color]="fraction.COLOR_OPFOR"
|
||||
style="font-weight: bold; margin-left: 10px;">{{war.ptOpfor}} {{fraction.OPFOR}}</span>
|
||||
</div>
|
||||
|
||||
<div class="pull-left head-field " style="padding-left: 100px;">
|
||||
|
@ -48,8 +50,9 @@
|
|||
{{'stats.scoreboard.tab.player' | translate}}
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item" [ngClass]="{active :tab === 3}" (click)="switchTab(3)"
|
||||
*ngIf="war && war.players && war.players[0] && war.players[0].performance">
|
||||
<li class="nav-item"
|
||||
[ngClass]="{active : tab === 3,'nav-tab-hidden' : war && war.players[0] && !war.players[0].performance}"
|
||||
(click)="switchTab(3)">
|
||||
<a class="nav-link">
|
||||
<mat-icon svgIcon="stats-performance" class="mat-icon-stats-performance"></mat-icon>
|
||||
{{'stats.scoreboard.tab.performance' | translate}}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
export class PlayerUtils {
|
||||
|
||||
//TODO: drop this tmp collection, excluding player transport stats from campaign detail page and highscore page,
|
||||
// adding valid procesing there
|
||||
// TODO: drop this tmp collection, excluding player transport stats from campaign detail page and highscore page,
|
||||
// adding valid processing there
|
||||
public static readonly tmpAttributeDisplayNames = [
|
||||
{prop: 'name', head: 'stats.scoreboard.header.player'},
|
||||
{prop: 'fraction', head: 'stats.scoreboard.header.fraction'},
|
||||
|
|
Loading…
Reference in New Issue