Skip to content

Commit ca5297c

Browse files
committed
fix:some bug
1 parent f59ee58 commit ca5297c

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

Diff for: src/components/Check.vue

+5-18
Original file line numberDiff line numberDiff line change
@@ -870,19 +870,6 @@ function handleFunctionCallingCancel() {
870870
871871
// 页面加载时初始化主题和语言
872872
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-
});
886873
initializeTheme(isDarkMode);
887874
initializeLanguage(locale, currentLanguage);
888875
// 初始化本地缓存列表
@@ -2348,8 +2335,7 @@ body {
23482335
.wrapper {
23492336
display: flex;
23502337
flex-direction: column;
2351-
min-height: calc(var(--vh, 1vh) * 100);
2352-
justify-content: center; /* 垂直居中 */
2338+
justify-content: flex-start;
23532339
align-items: center; /* 水平居中 */
23542340
overflow-y: auto;
23552341
}
@@ -2376,7 +2362,6 @@ body {
23762362
align-items: center;
23772363
transition: transform 0.3s ease-in-out;
23782364
margin: auto;
2379-
max-height: 95vh;
23802365
}
23812366
23822367
@@ -3264,13 +3249,15 @@ body.light-mode {
32643249
margin: 4px 0;
32653250
}
32663251
3252+
.ant-modal .ant-modal-body {
3253+
max-height: 70vh;
3254+
overflow-y: auto;
3255+
}
32673256
.ant-list-item {
32683257
min-height: 80px; /* 根据需要调整 */
32693258
}
32703259
3271-
/* 可选:自定义滚动条样式 */
32723260
.ant-list {
3273-
/* 滚动条样式(可根据需要调整或移除) */
32743261
scrollbar-width: thin;
32753262
scrollbar-color: rgba(0, 0, 0, 0.5) transparent;
32763263
}

0 commit comments

Comments
 (0)