Update src/display/css_html_js.py
Browse files- src/display/css_html_js.py +11 -0
src/display/css_html_js.py
CHANGED
@@ -18,6 +18,17 @@ custom_css = """
|
|
18 |
font-size: 14px !important;
|
19 |
}
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
/* Enhanced Leaderboard table styling */
|
23 |
.dataframe {
|
|
|
18 |
font-size: 14px !important;
|
19 |
}
|
20 |
|
21 |
+
.gradio-container .dataframe table th {
|
22 |
+
min-width: 150px !important; /* 设置最小列宽度为 150px,根据需要调整 */
|
23 |
+
word-wrap: break-word !important; /* 防止列标题溢出 */
|
24 |
+
}
|
25 |
+
|
26 |
+
/* 为表格的单元格内容设置最小宽度 */
|
27 |
+
.gradio-container .dataframe table td {
|
28 |
+
min-width: 150px !important; /* 设置最小列宽度为 150px */
|
29 |
+
word-wrap: break-word !important; /* 强制长单词换行 */
|
30 |
+
}
|
31 |
+
|
32 |
|
33 |
/* Enhanced Leaderboard table styling */
|
34 |
.dataframe {
|