diff --git a/projects/backend/src/service/image.service.tsx b/projects/backend/src/service/image.service.tsx
index faffa24..68312f0 100644
--- a/projects/backend/src/service/image.service.tsx
+++ b/projects/backend/src/service/image.service.tsx
@@ -128,7 +128,7 @@ export class ImageService {
{/* Player PP */}
-
{formatPp(player.pp)}pp
+
{formatPp(player.pp)}pp
{this.renderDailyChange(ppChange)}
diff --git a/projects/website/src/components/leaderboard/leaderboard-score.tsx b/projects/website/src/components/leaderboard/leaderboard-score.tsx
index 067bf67..2d538a1 100644
--- a/projects/website/src/components/leaderboard/leaderboard-score.tsx
+++ b/projects/website/src/components/leaderboard/leaderboard-score.tsx
@@ -54,7 +54,7 @@ export default function LeaderboardScore({ score, claimedPlayer }: Props) {
{/* Score PP */}
- {formatPp(score.pp)}pp |
+ {score.pp > 0 && {formatPp(score.pp)}pp | }
{/* Score Modifiers */}
diff --git a/projects/website/src/components/leaderboard/leaderboard-scores.tsx b/projects/website/src/components/leaderboard/leaderboard-scores.tsx
index bb33008..1a8e12e 100644
--- a/projects/website/src/components/leaderboard/leaderboard-scores.tsx
+++ b/projects/website/src/components/leaderboard/leaderboard-scores.tsx
@@ -179,7 +179,7 @@ export default function LeaderboardScores({
| Score |
Accuracy |
Misses |
- PP |
+ {leaderboard.stars > 0 && PP | }
Mods |
diff --git a/projects/website/src/components/player/chart/player-accuracy-chart.tsx b/projects/website/src/components/player/chart/player-accuracy-chart.tsx
index 7196869..1dfe6d9 100644
--- a/projects/website/src/components/player/chart/player-accuracy-chart.tsx
+++ b/projects/website/src/components/player/chart/player-accuracy-chart.tsx
@@ -15,7 +15,7 @@ const datasetConfig: DatasetConfig[] = [
{
title: "Average Ranked Accuracy",
field: "accuracy.averageRankedAccuracy",
- color: "#606fff",
+ color: "#4858ff",
axisId: "y",
axisConfig: {
reverse: false,
diff --git a/projects/website/src/components/player/chart/player-ranking-chart.tsx b/projects/website/src/components/player/chart/player-ranking-chart.tsx
index 75ed318..6b86f58 100644
--- a/projects/website/src/components/player/chart/player-ranking-chart.tsx
+++ b/projects/website/src/components/player/chart/player-ranking-chart.tsx
@@ -41,7 +41,7 @@ const datasetConfig: DatasetConfig[] = [
{
title: "PP",
field: "pp",
- color: "#606fff",
+ color: "#4858ff",
axisId: "y2",
axisConfig: {
reverse: false,
diff --git a/projects/website/src/components/statistic/daily-change.tsx b/projects/website/src/components/statistic/daily-change.tsx
index 3496c44..f4f736f 100644
--- a/projects/website/src/components/statistic/daily-change.tsx
+++ b/projects/website/src/components/statistic/daily-change.tsx
@@ -3,11 +3,27 @@ import Tooltip from "@/components/tooltip";
import { formatNumberWithCommas } from "@ssr/common/utils/number-utils";
import { PlayerStatValue } from "@ssr/common/player/player-stat";
-// Props for DailyChangeComponent
interface DailyChangeProps {
+ /**
+ * The type of change
+ */
type: PlayerStatValue;
+
+ /**
+ * The value of the change
+ */
change: number | undefined;
+
+ /**
+ * The tooltip to display
+ */
tooltip?: React.ReactElement | string;
+
+ /**
+ * The formater for the change
+ *
+ * @param value
+ */
format?: (value: number) => string;
}
diff --git a/projects/website/tailwind.config.ts b/projects/website/tailwind.config.ts
index 0220a13..627c6cb 100644
--- a/projects/website/tailwind.config.ts
+++ b/projects/website/tailwind.config.ts
@@ -10,7 +10,7 @@ const config: Config = {
theme: {
extend: {
colors: {
- pp: "#606fff",
+ pp: "#4858ff",
background: "hsl(var(--background))",
foreground: "hsl(var(--foreground))",
card: {