Spaces:
Running
Running
Multiline closed dataset column header
#23
by
q275343119
- opened
app/backend/data_page.py
CHANGED
@@ -207,7 +207,7 @@ def table_area(group_name, grid_state, data_engine=None, df=None):
|
|
207 |
"min-width": "0"
|
208 |
},
|
209 |
# Header
|
210 |
-
".ag-header":{
|
211 |
"overflow": "visible !important",
|
212 |
},
|
213 |
".multi-line-header": {
|
@@ -269,16 +269,20 @@ def table_area(group_name, grid_state, data_engine=None, df=None):
|
|
269 |
#
|
270 |
# "display": "inline-block",
|
271 |
# }
|
272 |
-
,".ag-header-cell-text":{
|
273 |
"overflow": "visible !important",
|
274 |
-
"width":"fit-content"
|
275 |
|
276 |
}
|
277 |
-
,".ag-header-cell-label":{
|
278 |
"overflow": "visible !important",
|
279 |
"width": "fit-content"
|
280 |
|
281 |
}
|
|
|
|
|
|
|
|
|
282 |
}
|
283 |
|
284 |
grid = AgGrid(
|
|
|
207 |
"min-width": "0"
|
208 |
},
|
209 |
# Header
|
210 |
+
".ag-header": {
|
211 |
"overflow": "visible !important",
|
212 |
},
|
213 |
".multi-line-header": {
|
|
|
269 |
#
|
270 |
# "display": "inline-block",
|
271 |
# }
|
272 |
+
, ".ag-header-cell-text": {
|
273 |
"overflow": "visible !important",
|
274 |
+
"width": "fit-content"
|
275 |
|
276 |
}
|
277 |
+
, ".ag-header-cell-label": {
|
278 |
"overflow": "visible !important",
|
279 |
"width": "fit-content"
|
280 |
|
281 |
}
|
282 |
+
# Multiline closed dataset column header
|
283 |
+
, "div.link-header-component > span": {
|
284 |
+
"white-space": "pre-wrap !important"
|
285 |
+
}
|
286 |
}
|
287 |
|
288 |
grid = AgGrid(
|
app/backend/multi_header_util.py
CHANGED
@@ -86,7 +86,7 @@ def mutil_header_options(column_list: list, avg_column: str, is_section: bool):
|
|
86 |
"headerComponentParams": {
|
87 |
"innerHeaderComponent": "linkHeaderComponent",
|
88 |
"url": LINK + get_dataset_url_name(column),
|
89 |
-
"headerName": column
|
90 |
},
|
91 |
|
92 |
'headerClass': 'custom-header-style',
|
|
|
86 |
"headerComponentParams": {
|
87 |
"innerHeaderComponent": "linkHeaderComponent",
|
88 |
"url": LINK + get_dataset_url_name(column),
|
89 |
+
"headerName": format_closed_dataset_header(column)
|
90 |
},
|
91 |
|
92 |
'headerClass': 'custom-header-style',
|