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

widen display for longer names

Browse files
Files changed (1) hide show
  1. src/display/css_html_js.py +11 -1
src/display/css_html_js.py CHANGED
@@ -41,11 +41,21 @@ custom_css = """
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: 600px;
45
  overflow: auto;
46
  white-space: nowrap;
47
  }
48
 
 
 
 
 
 
 
 
 
 
 
49
  .tab-buttons button {
50
  font-size: 20px;
51
  }
 
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;
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 {
60
  font-size: 20px;
61
  }