Skip to content

Commit ea18ff1

Browse files
semoroclaude
authored andcommitted
Restyle notice as a regular leaderboard row with ? badge
The notice now renders as a normal data row with a muted "?" rank badge and italic text, matching the layout of scored entries. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f133915 commit ea18ff1

2 files changed

Lines changed: 14 additions & 7 deletions

File tree

blocks/benchmark/leaderboard/index.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,15 @@ export function Leaderboard() {
4242
{notice && (
4343
<tbody>
4444
<tr className={styles.noticeRow} data-testid="bench-notice">
45-
<td
46-
className={cn(styles.td, styles.noticeCell, textCn('rs-text-2'))}
47-
colSpan={columns.length + 1}
48-
>
49-
{notice}
45+
<td className={cn(styles.td, styles.tdSetup)}>
46+
<div className={styles.setup}>
47+
<span className={cn(styles.rank, styles.noticeRank, textCn('rs-text-3'))}>?</span>
48+
<span className={cn(styles.noticeName, textCn('rs-text-2'))}>{notice}</span>
49+
</div>
5050
</td>
51+
{columns.map((col) => (
52+
<td key={col.key} className={styles.td} />
53+
))}
5154
</tr>
5255
</tbody>
5356
)}

blocks/benchmark/leaderboard/leaderboard.module.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,14 @@
2626
background: rgba(255, 255, 255, 0.03);
2727
}
2828

29-
.noticeCell {
29+
.noticeRank {
30+
background: rgba(255, 255, 255, 0.04);
31+
color: rgba(255, 255, 255, 0.3);
32+
}
33+
34+
.noticeName {
3035
color: rgba(255, 255, 255, 0.5);
3136
font-style: italic;
32-
text-align: center;
3337
}
3438

3539
.scroll {

0 commit comments

Comments
 (0)