sedrick-keh-tri commited on
Commit
588dcd6
·
1 Parent(s): a6ad59e

scrolling fix

Browse files
Files changed (1) hide show
  1. app.py +6 -9
app.py CHANGED
@@ -125,22 +125,19 @@ css = """
125
  padding: 4px 8px !important;
126
  }
127
 
128
- /* Make ONLY the table container scrollable, not parent divs */
129
- .dataframe {
130
- max-height: 600px !important;
131
- overflow: auto !important;
 
132
  }
133
 
 
134
  .table-wrap {
135
  max-height: 600px !important;
136
  overflow: auto !important;
137
  }
138
 
139
- /* Remove overflow from parent containers */
140
- div[data-testid="data-table"] {
141
- overflow: visible !important;
142
- }
143
-
144
  /* Ensure table uses fixed layout */
145
  table {
146
  table-layout: fixed !important;
 
125
  padding: 4px 8px !important;
126
  }
127
 
128
+ /* Remove all scrollbars from outer containers */
129
+ div[data-testid="data-table"],
130
+ div[data-testid="data-table"] > div,
131
+ .gr-block.gr-box {
132
+ overflow: visible !important;
133
  }
134
 
135
+ /* Only the innermost table wrapper should scroll */
136
  .table-wrap {
137
  max-height: 600px !important;
138
  overflow: auto !important;
139
  }
140
 
 
 
 
 
 
141
  /* Ensure table uses fixed layout */
142
  table {
143
  table-layout: fixed !important;