Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -860,19 +860,20 @@ styled_table = (
|
|
860 |
"word-wrap": "break-word", # Ensure text wraps within cells
|
861 |
}
|
862 |
)
|
863 |
-
.set_table_styles(
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
)
|
868 |
.hide(axis="index") # Hide the row index
|
869 |
)
|
870 |
|
871 |
table_html_data = styled_table._repr_html_()
|
872 |
# table_html_data = dataset_sources.to_html(index=False, border=0)
|
873 |
table_div_data = Div(
|
874 |
-
|
875 |
-
NotStr(table_html_data)
|
|
|
876 |
|
877 |
)
|
878 |
|
|
|
860 |
"word-wrap": "break-word", # Ensure text wraps within cells
|
861 |
}
|
862 |
)
|
863 |
+
# .set_table_styles(
|
864 |
+
# [
|
865 |
+
# {"selector": "table", "props": [("margin-left", "auto"), ("margin-right", "auto"), ("width", "100%"), ("border-collapse", "collapse")]} # Center table and make it responsive
|
866 |
+
# ]
|
867 |
+
# )
|
868 |
.hide(axis="index") # Hide the row index
|
869 |
)
|
870 |
|
871 |
table_html_data = styled_table._repr_html_()
|
872 |
# table_html_data = dataset_sources.to_html(index=False, border=0)
|
873 |
table_div_data = Div(
|
874 |
+
NotStr(table_html_data), style="margin: 20px auto; width: 100%; max-width: 100%; overflow-x: auto;"
|
875 |
+
# NotStr(table_html_data)
|
876 |
+
|
877 |
|
878 |
)
|
879 |
|