diff --git a/static/src/app/statistic/war/scoreboard/scoreboard.component.css b/static/src/app/statistic/war/scoreboard/scoreboard.component.css index 7367a6f..e7762f8 100644 --- a/static/src/app/statistic/war/scoreboard/scoreboard.component.css +++ b/static/src/app/statistic/war/scoreboard/scoreboard.component.css @@ -1,5 +1,5 @@ .scoreboard-table { - width: 1115px; + width: 1058px; margin: auto; height: 68vh; overflow-x: hidden; @@ -8,6 +8,16 @@ border-bottom: 1px solid #dadada; } +.mat-header-row { + width: 1058px; + position: fixed; + z-index: 100; +} + +.mat-table > mat-row:first-of-type { + padding-top: 56px; +} + .mat-column-name { flex: 0 0 220px; } @@ -18,7 +28,7 @@ .mat-column-kill, .mat-column-friendlyFire, .mat-column-revive, .mat-column-flagTouch, .mat-column-vehicleLight, .mat-column-vehicleHeavy, .mat-column-vehicleAir, .mat-column-death, .mat-column-respawn, .mat-column-interact { - flex: 0 0 80px; + flex: 0 0 75px; } :host /deep/ .mat-table .mat-icon { diff --git a/static/src/app/statistic/war/scoreboard/scoreboard.component.html b/static/src/app/statistic/war/scoreboard/scoreboard.component.html index 4ef7c99..09fe393 100644 --- a/static/src/app/statistic/war/scoreboard/scoreboard.component.html +++ b/static/src/app/statistic/war/scoreboard/scoreboard.component.html @@ -20,9 +20,8 @@ - - + + {{element[column.prop]}}