Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 20 additions & 16 deletions frontend/src/pages/leaderboard/Leaderboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,22 +191,26 @@ export default function Leaderboard() {
<Grid marginBottom={2}>
<Card>
<CardContent>
<CardTitle fontWeight="bold">Description</CardTitle>
<MarkdownRenderer content={data.description} />
{data.benchmarks && data.benchmarks.length > 0 && (
<details>
<summary style={{ cursor: "pointer", fontWeight: "bold", marginTop: 16 }}>
Benchmark Shapes
</summary>
<ul>
{data.benchmarks.map((b, i) => (
<li key={i}>
<code>{JSON.stringify(Object.fromEntries(Object.entries(b).filter(([k]) => k !== "seed")))}</code>
</li>
))}
</ul>
</details>
)}
<details>
<summary style={{ cursor: "pointer", fontWeight: "bold", fontSize: "1.5rem" }}>
Description
</summary>
<MarkdownRenderer content={data.description} />
{data.benchmarks && data.benchmarks.length > 0 && (
<details>
<summary style={{ cursor: "pointer", fontWeight: "bold", marginTop: 16 }}>
Benchmark Shapes
</summary>
<ul>
{data.benchmarks.map((b, i) => (
<li key={i}>
<code>{JSON.stringify(Object.fromEntries(Object.entries(b).filter(([k]) => k !== "seed")))}</code>
</li>
))}
</ul>
</details>
)}
</details>
</CardContent>
</Card>
</Grid>
Expand Down
Loading