Skip to content

Commit 4c3a446

Browse files
committed
fix table layout
1 parent 1263080 commit 4c3a446

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/by/[rankingType]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const getDelta = (ownedStars: number, ownedStarsM: number | null | undefined) =>
6666
return (
6767
<div className={cn('text-xs', { 'text-positive': isPositive, 'text-negative': !isPositive })}>{`${
6868
isPositive ? '+' : ''
69-
}${difference}`}</div>
69+
}${difference?.toLocaleString('en-US')}`}</div>
7070
);
7171
};
7272

@@ -119,7 +119,7 @@ export default async function GlobalRanking({
119119
)}
120120
{user?.login}
121121
</TableCell>
122-
<TableCell className="hidden sm:table-cell">{user?.location}</TableCell>
122+
<TableCell className="hidden sm:table-cell break-all whitespace-normal">{user?.location}</TableCell>
123123
<TableCell className="text-right">{user?.[rankPropName]?.toLocaleString('en-US')}</TableCell>
124124
</TableRow>
125125
);

0 commit comments

Comments
 (0)