diff --git a/projects/website/src/components/player/player-info.tsx b/projects/website/src/components/player/player-info.tsx index d1f7032..f2a716b 100644 --- a/projects/website/src/components/player/player-info.tsx +++ b/projects/website/src/components/player/player-info.tsx @@ -18,6 +18,11 @@ type TablePlayerProps = { */ highlightedPlayer?: ScoreSaberPlayerToken | ScoreSaberPlayer; + /** + * The additional class names + */ + className?: string; + /** * Hide the country flag */ @@ -37,6 +42,7 @@ type TablePlayerProps = { export function PlayerInfo({ player, highlightedPlayer, + className, hideCountryFlag, useLink, hoverBrightness = true, @@ -46,7 +52,8 @@ export function PlayerInfo({ className={clsx( hoverBrightness ? "transform-gpu transition-all hover:brightness-[66%]" : "", player.id == highlightedPlayer?.id ? "font-bold" : "", - "text-ellipsis overflow-hidden whitespace-nowrap" + `text-ellipsis max-w-[250px] overflow-hidden whitespace-nowrap break-all`, + className )} style={{ color: getScoreSaberRole(player)?.color, @@ -57,7 +64,7 @@ export function PlayerInfo({ ); return ( -
#{formatNumberWithCommas(rank)}
{formatPp(playerRanking.pp)}pp
diff --git a/projects/website/src/components/ranking/player-ranking.tsx b/projects/website/src/components/ranking/player-ranking.tsx index 8f835b4..e54d11c 100644 --- a/projects/website/src/components/ranking/player-ranking.tsx +++ b/projects/website/src/components/ranking/player-ranking.tsx @@ -21,11 +21,11 @@ export function PlayerRanking({ player, isCountry }: PlayerRankingProps) { return ( <> -