tabedini commited on
Commit
2bff400
·
verified ·
1 Parent(s): 3806c24

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +22 -5
utils.py CHANGED
@@ -45,8 +45,6 @@ body, .gradio-container, .gr-button, .gr-input, .gr-slider, .gr-dropdown, .gr-ma
45
  #leaderboard-table th:first-child {
46
  text-align: left;
47
  max-width: 200px;
48
- overflow-x: auto;
49
- white-space: nowrap;
50
  }
51
 
52
  table > thead {
@@ -59,11 +57,30 @@ table > tbody td {
59
  vertical-align: middle;
60
  }
61
 
 
62
  table > tbody td:first-child {
63
  text-align: left;
64
- max-width: 200px;
65
- overflow-x: auto;
66
- white-space: nowrap;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  }
68
 
69
  #leaderboard-table-lite {
 
45
  #leaderboard-table th:first-child {
46
  text-align: left;
47
  max-width: 200px;
 
 
48
  }
49
 
50
  table > thead {
 
57
  vertical-align: middle;
58
  }
59
 
60
+ /* Apply scrollable div in the first column */
61
  table > tbody td:first-child {
62
  text-align: left;
63
+ max-width: 200px; /* Set width limit for first column */
64
+ }
65
+
66
+ table > tbody td:first-child div {
67
+ display: block;
68
+ max-width: 100%; /* Ensure the div takes up the full width of the cell */
69
+ overflow-x: auto; /* Enable horizontal scrolling */
70
+ white-space: nowrap; /* Prevent text from wrapping */
71
+ }
72
+
73
+ /* Optional styling for the scrollable content */
74
+ table > tbody td:first-child div::-webkit-scrollbar {
75
+ height: 8px;
76
+ }
77
+
78
+ table > tbody td:first-child div::-webkit-scrollbar-thumb {
79
+ background-color: #888;
80
+ }
81
+
82
+ table > tbody td:first-child div::-webkit-scrollbar-thumb:hover {
83
+ background-color: #555;
84
  }
85
 
86
  #leaderboard-table-lite {