t0-0 commited on
Commit
e630c2a
1 Parent(s): 53a0fb5

Apply CSS to the model name column

Browse files

The 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.

Files changed (1) hide show
  1. src/display/css_html_js.py +2 -2
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:first-child,
43
- table th:first-child {
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;