Skip to content
Merged
Show file tree
Hide file tree
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
63 changes: 6 additions & 57 deletions src/pages/LeaderboardPage.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,6 @@
}


.leaderboard-full-bleed {
width: 100vw;
position: relative;
left: 50%;
right: 50%;
margin-left: -50vw;
padding: 0 1rem;
margin-bottom: 2rem;
}

.leaderboard-full-bleed .leaderboard-container {
width:90vw;
margin: 0 auto;
}

.page-header {
text-align: center;
margin-bottom: 2rem;
Expand Down Expand Up @@ -339,8 +324,8 @@
--lb-grid:
minmax(0, 0.5fr) /* Select */
minmax(0, 0.7fr) /* Rank */
minmax(0, 2.0fr) /* Name */
minmax(0, 1.1fr) /* Affiliation */
minmax(0, 1.8fr) /* Name */
minmax(0, 0.7fr) /* Affiliation */
minmax(0, 0.9fr) /* Arena */
minmax(0, 0.9fr) /* Accuracy */
minmax(0, 0.9fr) /* Cost/1k */
Expand All @@ -367,14 +352,6 @@
align-items: center;
}

.leaderboard-header > div,
.leaderboard-row > div {
padding: 0.75rem 0.75rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}



.leaderboard-body {
Expand Down Expand Up @@ -1333,20 +1310,6 @@
cursor: pointer;
}

.router-name-link .router-name::after {
content: '';
position: absolute;
left: 0;
bottom: -0.15rem;
width: 100%;
height: 2px;
background: #2563eb;
opacity: 0;
transform: scaleX(0.85);
transform-origin: left;
transition: opacity 0.2s ease, transform 0.2s ease;
}

.router-name-link:hover .router-name {
color: #1d4ed8;
}
Expand Down Expand Up @@ -1407,7 +1370,7 @@
.metrics-col {
display: flex;
justify-content: center;
align-items: center;
align-items: left;
}

.metric-value {
Expand Down Expand Up @@ -1772,22 +1735,7 @@
align-items: center;
}

/* Prevent content like "closed-source" or long affiliations from stretching columns */
.leaderboard-header > div,
.leaderboard-row > div {
overflow: hidden;
/* text-overflow: ellipsis; */
white-space: nowrap;

}

/* Preserve left alignment for name and affiliation columns */
.leaderboard-header .name-col,
.leaderboard-header .affiliation-col,
.leaderboard-row .name-col,
.leaderboard-row .affiliation-col {
text-align: left;
}

/* Fix type badge and prevent flex growth */
.type-col {
Expand Down Expand Up @@ -1820,8 +1768,9 @@
/* put padding on cells (same for header and rows) */
.leaderboard-header > div,
.leaderboard-row > div {
padding: 0.75rem 0.75rem !important;
overflow: hidden;
padding: 0.75rem 0rem !important;
text-align: left;
overflow: visible;
/* text-overflow: ellipsis; */
white-space: nowrap;
}
Expand Down
2 changes: 0 additions & 2 deletions src/pages/LeaderboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,6 @@ const LeaderboardPage: React.FC = () => {
</div>

{/* Leaderboard Table */}
<div className="leaderboard-full-bleed">
<div className="leaderboard-container">
<div className="leaderboard-scroll">
<div className="leaderboard-header">
Expand Down Expand Up @@ -617,7 +616,6 @@ const LeaderboardPage: React.FC = () => {
</div>
</div>
</div>
</div>
{modelCardRouter && (
<div className="model-card-modal-overlay" onClick={() => setModelCardRouter(null)}>
<div className="model-card-modal" onClick={event => event.stopPropagation()}>
Expand Down