Update utils.py
Browse files
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 |
-
|
66 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 {
|