Skip to content

Commit 4198248

Browse files
committed
Fix PlayerStatsGrid layout and update PlayerStatsTree rendering logic
1 parent 887ce5b commit 4198248

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/client/components/baseComponents/stats/PlayerStatsGrid.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class PlayerStatsGrid extends LitElement {
1111
}
1212
@media (min-width: 640px) {
1313
.grid {
14-
grid-template-columns: repeat(3, 1fr);
14+
grid-template-columns: repeat(2, 1fr);
1515
}
1616
}
1717
.stat {
@@ -35,7 +35,7 @@ export class PlayerStatsGrid extends LitElement {
3535
render() {
3636
return html`
3737
<div class="grid mb-2">
38-
${Array(6)
38+
${Array(4)
3939
.fill(0)
4040
.map(
4141
(_, i) => html`

src/client/components/baseComponents/stats/PlayerStatsTree.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,16 +178,12 @@ export class PlayerStatsTreeView extends LitElement {
178178
translateText("player_modal.stats_losses"),
179179
translateText("player_modal.stats_wlr"),
180180
translateText("player_modal.stats_games_played"),
181-
translateText("player_modal.stats_play_time"),
182-
translateText("player_modal.stats_last_active"),
183181
]}
184182
.values=${[
185183
renderNumber(leaf.wins),
186184
renderNumber(leaf.losses),
187185
wlr.toFixed(2),
188186
renderNumber(leaf.total),
189-
translateText("player_modal.not_applicable"),
190-
translateText("player_modal.not_applicable"),
191187
]}
192188
></player-stats-grid>
193189

0 commit comments

Comments
 (0)