Skip to content

Commit 5c6d723

Browse files
committed
fix: the main leaderboard in the community page
1 parent ee85b07 commit 5c6d723

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

community.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@
5858
class="px-4 py-3 text-left text-sm font-semibold text-zinc-700 dark:text-zinc-300 border-r-2 border-zinc-300 dark:border-zinc-600">
5959
#</th>
6060
<!-- Strategy Section -->
61-
<th scope="col"
62-
class="px-4 py-3 text-center text-sm font-semibold text-zinc-700 dark:text-zinc-300 hidden lg:table-cell">
63-
Author</th>
6461
<th scope="col" class="px-4 py-3 text-center text-sm font-semibold text-zinc-700 dark:text-zinc-300">
6562
Strategy</th>
63+
<th scope="col"
64+
class="px-4 py-3 text-center text-sm font-semibold text-zinc-700 dark:text-zinc-300 hidden xl:table-cell">
65+
Author</th>
6666
<!-- Stats Section -->
6767
<th scope="col" aria-label="Average final round"
6868
class="px-4 py-3 text-center text-sm font-semibold text-zinc-700 dark:text-zinc-300 border-l-2 border-zinc-300 dark:border-zinc-600">

script.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -866,9 +866,9 @@ async function loadLeaderboard(leaderboardPath, detailBasePath, displayMode = 'm
866866
model = modelParts[1];
867867

868868
if (displayMode === 'community') {
869-
// For strategies: show author as primary, strategy name as secondary
870-
primaryValue = entry.strategy.author;
871-
secondaryValue = entry.strategy.name;
869+
// For strategies: show strategy name as primary, author as secondary
870+
primaryValue = entry.strategy.name;
871+
secondaryValue = entry.strategy.author;
872872
} else {
873873
// For models: show model name as primary, vendor as secondary
874874
primaryValue = model;

0 commit comments

Comments
 (0)