saumyamalik commited on
Commit
8312b6e
·
1 Parent(s): 18e30c5

widen display for longer names

Browse files
Files changed (1) hide show
  1. src/display/css_html_js.py +5 -7
src/display/css_html_js.py CHANGED
@@ -46,14 +46,12 @@ custom_css = """
46
  white-space: nowrap;
47
  }
48
 
49
- #leaderboard-table {
50
- table-layout: auto; /* allows column widths to be determined by content */
51
- width: 100%;
52
- }
53
-
54
- #leaderboard-table th, #leaderboard-table td {
55
- resize: horizontal;
56
  overflow: auto;
 
57
  }
58
 
59
  .tab-buttons button {
 
46
  white-space: nowrap;
47
  }
48
 
49
+ /* Limit the width of the first AutoEvalColumn so that names don't expand too much */
50
+ #leaderboard-table td:nth-child(1),
51
+ #leaderboard-table th:nth-child(1) {
52
+ max-width: 1000px;
 
 
 
53
  overflow: auto;
54
+ white-space: nowrap;
55
  }
56
 
57
  .tab-buttons button {