Skip to content

Commit 40c156a

Browse files
authored
Enhancement/leaderboard (#19)
* Added link to paper in nav bar * updated instructions for submitting to just go to project page and follow readme * Made text on hero section lighter, rephrased cta button 'get started' text * Made subtitles one liner * Added logo and rescaled 0-100 * fixed metrics range, and dangling word * Changed commercial/academic -> closed/open source. Added Chayan to leaderboard * Fixed col width * changed vllm affiliation to vllm sr team * Fixed premature scrollbar on loaderboard * added text wrapping to leaderboard affiliations
1 parent 601c6bd commit 40c156a

File tree

1 file changed

+34
-35
lines changed

1 file changed

+34
-35
lines changed

src/pages/LeaderboardPage.css

Lines changed: 34 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,22 @@
162162
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
163163
}
164164

165+
165166
:root {
166-
--lb-grid: 0.6fr /* Rank */ 1.5fr /* Name */ 1.2fr /* Affiliation */ 1.2fr /* Type */ 0.8fr
167-
/* Arena */ 0.8fr /* Opt. Select */ 0.8fr /* Opt. Cost */ 0.8fr /* Opt. Acc */ 0.8fr
168-
/* Latency */ 0.8fr; /* Robust */
167+
--lb-grid:
168+
minmax(0, 0.6fr) /* Rank */
169+
minmax(0, 1.5fr) /* Name */
170+
minmax(0, 1.4fr) /* Affiliation */
171+
minmax(0, 1.1fr) /* Type */
172+
minmax(0, 0.8fr)
173+
minmax(0, 0.8fr)
174+
minmax(0, 0.8fr)
175+
minmax(0, 0.8fr)
176+
minmax(0, 0.8fr)
177+
minmax(0, 0.8fr);
169178
}
170179

180+
171181
.leaderboard-header {
172182
display: grid;
173183
grid-template-columns: var(--lb-grid);
@@ -183,18 +193,16 @@
183193
align-items: center;
184194
}
185195

186-
.leaderboard-header > div {
187-
padding: 8px 12px;
196+
.leaderboard-header > div,
197+
.leaderboard-row > div {
198+
min-width: 0 !important;
199+
padding: 0.75rem 0.75rem;
188200
overflow: hidden;
189201
text-overflow: ellipsis;
190202
white-space: nowrap;
191-
text-align: center;
192203
}
193204

194-
.leaderboard-header .name-col,
195-
.leaderboard-header .affiliation-col {
196-
text-align: left;
197-
}
205+
198206

199207
.leaderboard-body {
200208
max-height: none;
@@ -220,10 +228,6 @@
220228
text-align: center;
221229
}
222230

223-
.leaderboard-row .name-col,
224-
.leaderboard-row .affiliation-col {
225-
text-align: left;
226-
}
227231

228232
.leaderboard-row:hover {
229233
background: #f8fafc;
@@ -312,34 +316,27 @@
312316
background: var(--rank-other-bg);
313317
color: var(--rank-other-text);
314318
}
315-
316-
.name-col {
317-
display: flex;
318-
align-items: center;
319-
text-align: left;
320-
justify-content: flex-start;
321-
min-width: 0 !important;
322-
overflow-x: auto !important;
323-
white-space: nowrap !important;
324-
}
325-
319+
.name-col,
326320
.affiliation-col {
327-
scrollbar-width: thin;
328-
min-width: 0 !important;
329-
overflow-x: auto !important;
330-
white-space: nowrap !important;
331-
321+
white-space: normal !important;
322+
overflow: visible !important;
332323
}
333324

334-
325+
/* Actual text wrapping */
326+
.router-name,
335327
.affiliation {
336-
display: inline-block;
337-
min-width: max-content; /* content defines its own width */
338-
padding-bottom: 4px;
339-
328+
white-space: normal !important;
329+
overflow-wrap: break-word;
330+
word-break: break-word;
331+
}
340332

333+
.metrics-col,
334+
.rank-col,
335+
.type-col {
336+
white-space: nowrap;
341337
}
342338

339+
343340
.router-info {
344341
display: flex;
345342
flex-direction: column;
@@ -753,6 +750,8 @@
753750
overflow: hidden;
754751
/* text-overflow: ellipsis; */
755752
white-space: nowrap;
753+
min-width: 0 !important;
754+
756755
}
757756

758757
/* Preserve left alignment for name and affiliation columns */

0 commit comments

Comments
 (0)