@@ -870,19 +870,6 @@ function handleFunctionCallingCancel() {
870
870
871
871
// 页面加载时初始化主题和语言
872
872
onMounted (() => {
873
- const setVh = () => {
874
- const vh = window .innerHeight * 0.01 ;
875
- document .documentElement .style .setProperty (' --vh' , ` ${ vh} px` );
876
- };
877
-
878
- // 初始化设置
879
- setVh ();
880
- // 监听窗口尺寸变化,重新计算视口高度
881
- window .addEventListener (' resize' , setVh);
882
- // 在组件卸载前移除事件监听
883
- onBeforeUnmount (() => {
884
- window .removeEventListener (' resize' , setVh);
885
- });
886
873
initializeTheme (isDarkMode);
887
874
initializeLanguage (locale, currentLanguage);
888
875
// 初始化本地缓存列表
@@ -2348,8 +2335,7 @@ body {
2348
2335
.wrapper {
2349
2336
display : flex ;
2350
2337
flex-direction : column ;
2351
- min-height : calc (var (--vh , 1vh ) * 100 );
2352
- justify-content : center ; /* 垂直居中 */
2338
+ justify-content : flex-start ;
2353
2339
align-items : center ; /* 水平居中 */
2354
2340
overflow-y : auto ;
2355
2341
}
@@ -2376,7 +2362,6 @@ body {
2376
2362
align-items : center ;
2377
2363
transition : transform 0.3s ease-in-out ;
2378
2364
margin : auto ;
2379
- max-height : 95vh ;
2380
2365
}
2381
2366
2382
2367
@@ -3264,13 +3249,15 @@ body.light-mode {
3264
3249
margin : 4px 0 ;
3265
3250
}
3266
3251
3252
+ .ant-modal .ant-modal-body {
3253
+ max-height : 70vh ;
3254
+ overflow-y : auto ;
3255
+ }
3267
3256
.ant-list-item {
3268
3257
min-height : 80px ; /* 根据需要调整 */
3269
3258
}
3270
3259
3271
- /* 可选:自定义滚动条样式 */
3272
3260
.ant-list {
3273
- /* 滚动条样式(可根据需要调整或移除) */
3274
3261
scrollbar-width : thin ;
3275
3262
scrollbar-color : rgba (0 , 0 , 0 , 0.5 ) transparent ;
3276
3263
}
0 commit comments