Skip to content

Commit fb77319

Browse files
committed
Align leaderboard score numerals
1 parent f57b9dd commit fb77319

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/components/LeaderboardPreviewSection.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,18 +122,18 @@ export default function LeaderboardPreviewSection() {
122122
{row.idea_count} ideas
123123
</div>
124124
</td>
125-
<td className="py-4 px-4 text-right">
125+
<td className="py-4 px-4 text-right tabular-nums">
126126
<span className="text-base font-bold text-cyan-light">
127127
{formatScore(row.model_total_score)}
128128
</span>
129129
</td>
130-
<td className="py-4 px-4 text-right text-text-primary font-semibold">
130+
<td className="py-4 px-4 text-right text-text-primary font-semibold tabular-nums">
131131
{formatScore(row.model_idea_gen_score)}
132132
</td>
133-
<td className="py-4 px-4 text-right text-text-primary font-semibold">
133+
<td className="py-4 px-4 text-right text-text-primary font-semibold tabular-nums">
134134
{row.scored_idea_count}
135135
</td>
136-
<td className="py-4 px-4 text-right text-text-primary font-semibold">
136+
<td className="py-4 px-4 text-right text-text-primary font-semibold tabular-nums">
137137
{row.score_confidence.toFixed(2)}
138138
</td>
139139
</tr>

src/pages/LeaderboardPage.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export default function LeaderboardPage() {
213213
<p className="text-text-muted text-xs uppercase tracking-[0.14em] mb-3">
214214
Top Model Score
215215
</p>
216-
<p className="text-2xl sm:text-3xl font-semibold text-text-primary mb-2">
216+
<p className="text-2xl sm:text-3xl font-semibold text-text-primary mb-2 tabular-nums">
217217
{totals.topModelScore.toFixed(2)}
218218
</p>
219219
<p className="text-sm text-text-secondary leading-relaxed">
@@ -235,7 +235,7 @@ export default function LeaderboardPage() {
235235
<p className="text-text-muted text-xs uppercase tracking-[0.14em] mb-3">
236236
Top Node Score
237237
</p>
238-
<p className="text-2xl sm:text-3xl font-semibold text-text-primary mb-2">
238+
<p className="text-2xl sm:text-3xl font-semibold text-text-primary mb-2 tabular-nums">
239239
{totals.topNodeScore.toFixed(2)}
240240
</p>
241241
<p className="text-sm text-text-secondary leading-relaxed">
@@ -498,7 +498,7 @@ function ModelLeaderboardTable({ rows }: { rows: ModelLeaderboardRow[] }) {
498498
{formatModelDisplayName(row.generator_model)}
499499
</div>
500500
</td>
501-
<td className="py-4 px-4 text-right font-bold text-cyan-light">
501+
<td className="py-4 px-4 text-right font-bold text-cyan-light tabular-nums">
502502
{formatScore(getPublicModelBoardScore(row))}
503503
</td>
504504
<td className="py-4 px-4">
@@ -593,7 +593,7 @@ function NodeLeaderboardTable(
593593
</div>
594594
)}
595595
</td>
596-
<td className="py-4 px-4 text-right font-bold text-cyan-light">
596+
<td className="py-4 px-4 text-right font-bold text-cyan-light tabular-nums">
597597
{formatScore(getPublicNodeBoardScore(row))}
598598
</td>
599599
<td className="py-4 px-4 text-right text-text-primary font-semibold">

0 commit comments

Comments
 (0)