Skip to content

Commit

Permalink
style: make color muted for user without name
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Jan 24, 2024
1 parent 3e41206 commit ad6130e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/leaderboard/LeaderboardTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ function UserRow({ data, loading }: { data: LeaderboardData['data'][number]; loa
const title = (
<span
style={{ overflow: 'hidden', textOverflow: 'ellipsis', minWidth: 0, whiteSpace: 'nowrap' }}
className={clsx(!profile?.content?.name && 'ColorMuted')}
>
{profile?.content?.name ?? 'Unnamed'}
</span>
Expand Down

0 comments on commit ad6130e

Please sign in to comment.