Spaces:
Sleeping
Sleeping
sedrick-keh-tri
commited on
Commit
·
d02fc66
1
Parent(s):
778986e
fix
Browse files
app.py
CHANGED
|
@@ -96,12 +96,23 @@ def get_table_info(table_name):
|
|
| 96 |
|
| 97 |
# Create Gradio interface
|
| 98 |
css = """
|
| 99 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
max-width: 150px !important;
|
| 101 |
-
|
|
|
|
| 102 |
white-space: nowrap !important;
|
|
|
|
| 103 |
}
|
| 104 |
-
|
|
|
|
|
|
|
|
|
|
| 105 |
max-height: 600px !important;
|
| 106 |
overflow-y: auto !important;
|
| 107 |
}
|
|
|
|
| 96 |
|
| 97 |
# Create Gradio interface
|
| 98 |
css = """
|
| 99 |
+
/* Target Gradio dataframe cells */
|
| 100 |
+
div.svelte-1b19cri table td,
|
| 101 |
+
div.svelte-1b19cri table th,
|
| 102 |
+
.table-wrap table td,
|
| 103 |
+
.table-wrap table th,
|
| 104 |
+
table.svelte-1b19cri td,
|
| 105 |
+
table.svelte-1b19cri th {
|
| 106 |
max-width: 150px !important;
|
| 107 |
+
min-width: 100px !important;
|
| 108 |
+
overflow-x: auto !important;
|
| 109 |
white-space: nowrap !important;
|
| 110 |
+
text-overflow: clip !important;
|
| 111 |
}
|
| 112 |
+
|
| 113 |
+
/* Limit overall table height */
|
| 114 |
+
.table-wrap,
|
| 115 |
+
div[class*="table"] {
|
| 116 |
max-height: 600px !important;
|
| 117 |
overflow-y: auto !important;
|
| 118 |
}
|