Chaplain0908 commited on
Commit
b74d92c
·
verified ·
1 Parent(s): fa22349

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -6
app.py CHANGED
@@ -157,20 +157,29 @@ input[type="text"] {
157
  .stRadio p {
158
  color: #333333 !important;
159
  }
160
-
161
- /* 解决双层滚动:只保留一个滚动区域 */
162
- html {
163
- overflow: hidden !important;
 
164
  }
165
- body {
 
 
166
  overflow: hidden !important;
167
- height: 100vh !important;
168
  margin: 0 !important;
169
  }
170
  .stApp {
171
  overflow-y: auto !important;
172
  overflow-x: hidden !important;
173
  height: 100vh !important;
 
 
 
 
 
 
174
  }
175
  [data-testid="stAppViewContainer"] {
176
  overflow: visible !important;
@@ -227,6 +236,13 @@ header[data-testid="stHeader"] {
227
  .stTabs [data-baseweb="tab-panel"] {
228
  max-height: 600px !important;
229
  overflow-y: auto !important;
 
 
 
 
 
 
 
230
  }
231
 
232
  /* 表格内容左对齐 - glide-data-grid */
 
157
  .stRadio p {
158
  color: #333333 !important;
159
  }
160
+ .stRadio > div {
161
+ background-color: #ffffff !important;
162
+ padding: 5px 10px;
163
+ border-radius: 5px;
164
+ border: 1px solid #ccc;
165
  }
166
+
167
+ /* 隐藏外层滚动条但保留滚动功能 */
168
+ html, body {
169
  overflow: hidden !important;
170
+ height: 100% !important;
171
  margin: 0 !important;
172
  }
173
  .stApp {
174
  overflow-y: auto !important;
175
  overflow-x: hidden !important;
176
  height: 100vh !important;
177
+ /* 隐藏滚动条 */
178
+ scrollbar-width: none !important; /* Firefox */
179
+ -ms-overflow-style: none !important; /* IE/Edge */
180
+ }
181
+ .stApp::-webkit-scrollbar {
182
+ display: none !important; /* Chrome/Safari */
183
  }
184
  [data-testid="stAppViewContainer"] {
185
  overflow: visible !important;
 
236
  .stTabs [data-baseweb="tab-panel"] {
237
  max-height: 600px !important;
238
  overflow-y: auto !important;
239
+ background-color: #fafafa !important;
240
+ }
241
+
242
+ /* tabs 内部所有内容背景 */
243
+ .stTabs [data-baseweb="tab-panel"] > div,
244
+ .stTabs [data-testid="stVerticalBlock"] {
245
+ background-color: #fafafa !important;
246
  }
247
 
248
  /* 表格内容左对齐 - glide-data-grid */