fix: 修复工作区弹窗滚动区域并隐藏滚动轨道

This commit is contained in:
GouJ committed 2026-09-27 14:02:28 +08:00
1 parent 2b9d16d58c
commit aea4167ba6
1 file changed
+5 -1
+5 -1
View File
@@ -44,14 +44,18 @@ const open = defineModel<boolean>('open', { default: false })
/* 本组件专属布局与 Naive 内部结构覆盖。 */
@reference "../../styles/styles.css";
.workspace-tools-modal {
@apply max-h-[calc(100dvh-32px)] flex flex-col;
@apply max-h-[calc(100dvh-32px)] flex flex-col overflow-hidden;
}
.workspace-tools-modal .n-card__content {
@apply min-h-0 flex-1 overflow-hidden;
height: 0;
}
.workspace-tools-scroll.n-scrollbar {
@apply min-h-0 h-full;
}
.workspace-tools-scroll.n-scrollbar .n-scrollbar-rail {
display: none !important;
}
.workspace-tools-modal .n-card-header__close {
@apply grid place-items-center w-10 h-10 -m-2 rounded-none bg-transparent;
}