Spaces:
Running
Running
further adjust column width settings
Browse files- app.py +2 -2
- static/css/style.css +9 -9
app.py
CHANGED
|
@@ -82,7 +82,7 @@ with gr.Blocks() as block:
|
|
| 82 |
interactive=False,
|
| 83 |
elem_classes="custom-dataframe",
|
| 84 |
max_height=2400,
|
| 85 |
-
column_widths=["
|
| 86 |
)
|
| 87 |
|
| 88 |
def update_table_and_caption(table_type, super_group, model_group):
|
|
@@ -99,7 +99,7 @@ with gr.Blocks() as block:
|
|
| 99 |
headers=headers,
|
| 100 |
datatype=["number", "html"] + ["number"] * (len(headers) - 2),
|
| 101 |
interactive=False,
|
| 102 |
-
column_widths=["
|
| 103 |
),
|
| 104 |
caption,
|
| 105 |
f"<style>{base_css}\n{table_css}</style>"
|
|
|
|
| 82 |
interactive=False,
|
| 83 |
elem_classes="custom-dataframe",
|
| 84 |
max_height=2400,
|
| 85 |
+
column_widths=["100px", "220px"] + ["200px"] * (len(initial_headers) - 2),
|
| 86 |
)
|
| 87 |
|
| 88 |
def update_table_and_caption(table_type, super_group, model_group):
|
|
|
|
| 99 |
headers=headers,
|
| 100 |
datatype=["number", "html"] + ["number"] * (len(headers) - 2),
|
| 101 |
interactive=False,
|
| 102 |
+
column_widths=["100px", "220px"] + ["200px"] * (len(headers) - 2),
|
| 103 |
),
|
| 104 |
caption,
|
| 105 |
f"<style>{base_css}\n{table_css}</style>"
|
static/css/style.css
CHANGED
|
@@ -58,9 +58,9 @@
|
|
| 58 |
/* Rank column */
|
| 59 |
.custom-dataframe td:first-child,
|
| 60 |
.custom-dataframe th:first-child {
|
| 61 |
-
width:
|
| 62 |
-
min-width:
|
| 63 |
-
max-width:
|
| 64 |
text-align: center !important;
|
| 65 |
}
|
| 66 |
|
|
@@ -75,18 +75,18 @@
|
|
| 75 |
/* Overall, Core, Open-ended columns */
|
| 76 |
.custom-dataframe td:nth-child(n+3):nth-child(-n+5),
|
| 77 |
.custom-dataframe th:nth-child(n+3):nth-child(-n+5) {
|
| 78 |
-
width:
|
| 79 |
-
min-width:
|
| 80 |
-
max-width:
|
| 81 |
text-align: right !important;
|
| 82 |
}
|
| 83 |
|
| 84 |
/* Dimension columns */
|
| 85 |
.custom-dataframe td:nth-child(n+6),
|
| 86 |
.custom-dataframe th:nth-child(n+6) {
|
| 87 |
-
width:
|
| 88 |
-
min-width:
|
| 89 |
-
max-width:
|
| 90 |
text-align: right !important;
|
| 91 |
}
|
| 92 |
|
|
|
|
| 58 |
/* Rank column */
|
| 59 |
.custom-dataframe td:first-child,
|
| 60 |
.custom-dataframe th:first-child {
|
| 61 |
+
width: 100px !important;
|
| 62 |
+
min-width: 100px !important;
|
| 63 |
+
max-width: 100px !important;
|
| 64 |
text-align: center !important;
|
| 65 |
}
|
| 66 |
|
|
|
|
| 75 |
/* Overall, Core, Open-ended columns */
|
| 76 |
.custom-dataframe td:nth-child(n+3):nth-child(-n+5),
|
| 77 |
.custom-dataframe th:nth-child(n+3):nth-child(-n+5) {
|
| 78 |
+
width: 200px !important;
|
| 79 |
+
min-width: 200px !important;
|
| 80 |
+
max-width: 200px !important;
|
| 81 |
text-align: right !important;
|
| 82 |
}
|
| 83 |
|
| 84 |
/* Dimension columns */
|
| 85 |
.custom-dataframe td:nth-child(n+6),
|
| 86 |
.custom-dataframe th:nth-child(n+6) {
|
| 87 |
+
width: 200px !important;
|
| 88 |
+
min-width: 200px !important;
|
| 89 |
+
max-width: 200px !important;
|
| 90 |
text-align: right !important;
|
| 91 |
}
|
| 92 |
|