diff --git a/src/components/widgets/GameLengthChart.tsx b/src/components/widgets/GameLengthChart.tsx index 486d869..989cbf9 100644 --- a/src/components/widgets/GameLengthChart.tsx +++ b/src/components/widgets/GameLengthChart.tsx @@ -55,6 +55,7 @@ export function GameLengthChart(props: GameLengthProps) { intersect: false, mode: "index", }, + maxBarThickness: 50, plugins: { title: { display: false, diff --git a/src/lib/labels.ts b/src/lib/labels.ts index 387b9e2..d1b904e 100644 --- a/src/lib/labels.ts +++ b/src/lib/labels.ts @@ -3,7 +3,6 @@ import { League, Race } from "./api" export const raceLabels: Record = { infernals: "Infernals", vanguard: "Vanguard", - random: "Random", } export const leagueLabels: Record = { diff --git a/src/pages/players/[id]-[username]/statistics.astro b/src/pages/players/[id]-[username]/statistics.astro index 9b67bda..34f750d 100644 --- a/src/pages/players/[id]-[username]/statistics.astro +++ b/src/pages/players/[id]-[username]/statistics.astro @@ -24,6 +24,7 @@ import { GameLengthChart } from "../../../components/widgets/GameLengthChart" import { Image } from "astro:assets" import infernals from "../../../assets/game/factions/infernals-small.png" import vanguard from "../../../assets/game/factions/vanguard-small.png" +import { raceLabels } from "../../../lib/labels" const playerId = Astro.params.id! @@ -99,14 +100,14 @@ if (dateLabels[dateLabels.length - 1] !== today) {
{matchup.race} - {matchup.race} + {raceLabels[matchup.race]} vs - {matchup.opponent_race} {matchup.opponent_race} + {raceLabels[matchup.opponent_race]}
))