Spaces:
Running
Running
sedrick-keh-tri commited on
Commit ·
3a0a225
1
Parent(s): 8344b3b
fix cells
Browse files
app.py
CHANGED
|
@@ -96,7 +96,7 @@ def get_table_info(table_name):
|
|
| 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,
|
|
@@ -106,26 +106,20 @@ css = """
|
|
| 106 |
max-width: 250px !important;
|
| 107 |
min-width: 150px !important;
|
| 108 |
white-space: nowrap !important;
|
| 109 |
-
|
| 110 |
-
overflow: hidden !important;
|
| 111 |
font-size: 12px !important;
|
| 112 |
padding: 4px 8px !important;
|
| 113 |
}
|
| 114 |
|
| 115 |
-
/* Make table scrollable */
|
| 116 |
.table-wrap {
|
| 117 |
max-height: 600px !important;
|
| 118 |
overflow: auto !important;
|
| 119 |
}
|
| 120 |
|
| 121 |
-
/* Remove extra scrollbars from parent containers */
|
| 122 |
-
div[class*="table"] {
|
| 123 |
-
overflow: visible !important;
|
| 124 |
-
}
|
| 125 |
-
|
| 126 |
/* Ensure table fits properly */
|
| 127 |
.table-wrap table {
|
| 128 |
-
table-layout:
|
| 129 |
width: 100% !important;
|
| 130 |
}
|
| 131 |
"""
|
|
|
|
| 96 |
|
| 97 |
# Create Gradio interface
|
| 98 |
css = """
|
| 99 |
+
/* Target Gradio dataframe cells - make them scrollable */
|
| 100 |
div.svelte-1b19cri table td,
|
| 101 |
div.svelte-1b19cri table th,
|
| 102 |
.table-wrap table td,
|
|
|
|
| 106 |
max-width: 250px !important;
|
| 107 |
min-width: 150px !important;
|
| 108 |
white-space: nowrap !important;
|
| 109 |
+
overflow-x: auto !important;
|
|
|
|
| 110 |
font-size: 12px !important;
|
| 111 |
padding: 4px 8px !important;
|
| 112 |
}
|
| 113 |
|
| 114 |
+
/* Make table container scrollable */
|
| 115 |
.table-wrap {
|
| 116 |
max-height: 600px !important;
|
| 117 |
overflow: auto !important;
|
| 118 |
}
|
| 119 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
/* Ensure table fits properly */
|
| 121 |
.table-wrap table {
|
| 122 |
+
table-layout: fixed !important;
|
| 123 |
width: 100% !important;
|
| 124 |
}
|
| 125 |
"""
|