SarahXia0405 commited on
Commit
943edcf
·
verified ·
1 Parent(s): 46199e9

Update web/src/styles/globals.css

Browse files
Files changed (1) hide show
  1. web/src/styles/globals.css +11 -20
web/src/styles/globals.css CHANGED
@@ -134,7 +134,7 @@
134
  @apply bg-background text-foreground;
135
  -webkit-font-smoothing: antialiased;
136
  -moz-osx-font-smoothing: grayscale;
137
- overflow: hidden; /* 你这里锁页面滚动没问题:让内部面板各自滚 */
138
  }
139
  }
140
 
@@ -190,30 +190,21 @@
190
  html {
191
  font-size: var(--font-size);
192
  }
193
-
194
- /* ============================
195
- Scroll / Layout hardening
196
- ============================ */
197
-
198
- /* 关键:让任何 flex 子项允许变矮,否则 overflow 不生效 */
199
- .min-h-0 {
200
- min-height: 0;
201
- }
202
-
203
- /* 你想要的统一滚动容器:可滚动 + 不联动外层 + 有滚动条 */
204
  .panelScroll {
205
  overflow-y: auto;
206
  overflow-x: hidden;
207
- min-height: 0;
208
- padding-right: 10px;
209
 
210
- /* iOS/trackpad smoother */
211
- -webkit-overflow-scrolling: touch;
212
 
213
- /* 阻断 scroll chaining非常关键) */
214
  overscroll-behavior: contain;
215
 
216
- /* Firefox scrollbar */
 
 
 
217
  scrollbar-width: thin;
218
  scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
219
  }
@@ -231,11 +222,11 @@ html {
231
  background: transparent;
232
  }
233
 
234
- /* dark 下的滚动条稍亮一点 */
235
  .dark .panelScroll {
236
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
237
  }
238
-
239
  .dark .panelScroll::-webkit-scrollbar-thumb {
240
  background: rgba(255, 255, 255, 0.22);
241
  }
 
 
134
  @apply bg-background text-foreground;
135
  -webkit-font-smoothing: antialiased;
136
  -moz-osx-font-smoothing: grayscale;
137
+ overflow: hidden; /* 禁用页面滚动,避免左右中面板滚动联动(scroll chaining) */
138
  }
139
  }
140
 
 
190
  html {
191
  font-size: var(--font-size);
192
  }
193
+ /* ===== Scrollbar helper (minimal, non-invasive) ===== */
 
 
 
 
 
 
 
 
 
 
194
  .panelScroll {
195
  overflow-y: auto;
196
  overflow-x: hidden;
 
 
197
 
198
+ /* 让滚动条出现时不挤内容(可选) */
199
+ padding-right: 10px;
200
 
201
+ /* 阻断外层联动滚动可选,但推荐) */
202
  overscroll-behavior: contain;
203
 
204
+ /* 更顺滑(可选) */
205
+ -webkit-overflow-scrolling: touch;
206
+
207
+ /* Firefox 滚动条 */
208
  scrollbar-width: thin;
209
  scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
210
  }
 
222
  background: transparent;
223
  }
224
 
225
+ /* dark 下稍亮一点(可选) */
226
  .dark .panelScroll {
227
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
228
  }
 
229
  .dark .panelScroll::-webkit-scrollbar-thumb {
230
  background: rgba(255, 255, 255, 0.22);
231
  }
232
+