Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Apply CSS to the model name column
Browse filesThe model name is in the second column, so with this fix, I believe we can prevent the cell from expanding when a long model name is submitted.
src/display/css_html_js.py
CHANGED
@@ -39,8 +39,8 @@ custom_css = """
|
|
39 |
}
|
40 |
|
41 |
/* Limit the width of the first AutoEvalColumn so that names don't expand too much */
|
42 |
-
table td:
|
43 |
-
table th:
|
44 |
max-width: 400px;
|
45 |
overflow: auto;
|
46 |
white-space: nowrap;
|
|
|
39 |
}
|
40 |
|
41 |
/* Limit the width of the first AutoEvalColumn so that names don't expand too much */
|
42 |
+
#leaderboard-table td:nth-child(2),
|
43 |
+
#leaderboard-table th:nth-child(2) {
|
44 |
max-width: 400px;
|
45 |
overflow: auto;
|
46 |
white-space: nowrap;
|