diff --git a/src/components/ui/AppDialog.vue b/src/components/ui/AppDialog.vue
index 33c5887..552c4c4 100644
--- a/src/components/ui/AppDialog.vue
+++ b/src/components/ui/AppDialog.vue
@@ -1,9 +1,46 @@
@@ -20,7 +57,8 @@ const open = defineModel('open', { default: false })
role="dialog"
:aria-label="title"
>
-
+
+
{{ description }}
@@ -46,21 +84,20 @@ const open = defineModel('open', { default: false })
@apply shrink-0;
}
-/*
- * 正文必须形成完整的 flex 高度链:
- * Card content 占据 header/footer 之外的剩余空间,
- * NScrollbar 再占满 content,这样内部 container 才能正确计算可滚动高度。
- */
+/* 正文使用实际测得的剩余视口高度,短内容保持自然高度。 */
.app-dialog .n-card__content {
- @apply min-h-0 flex-1 overflow-hidden;
- display: flex;
+ @apply min-h-0 overflow-hidden;
+ display: block;
}
.dialog-body-scroll.n-scrollbar {
- @apply min-h-0 flex-1;
+ @apply min-h-0;
+ height: auto;
}
/* 仅隐藏 NScrollbar 的视觉滚动条,不影响鼠标滚轮、触控板与内容拖动滚动。 */
+.dialog-body-anchor { display: block; height: 0; }
+
.dialog-body-scroll.n-scrollbar .n-scrollbar-rail {
opacity: 0 !important;
pointer-events: none !important;