diff --git a/src/components/ui/AppDialog.vue b/src/components/ui/AppDialog.vue index a0e629f..68c7e02 100644 --- a/src/components/ui/AppDialog.vue +++ b/src/components/ui/AppDialog.vue @@ -96,7 +96,10 @@ onBeforeUnmount(() => { } /* 仅隐藏 NScrollbar 的视觉滚动条,不影响鼠标滚轮、触控板与内容拖动滚动。 */ -.dialog-body-anchor { display: block; height: 0; } +.dialog-body-anchor { + display: block; + height: 0; +} .dialog-body-scroll.n-scrollbar .n-scrollbar-rail { opacity: 0 !important; @@ -125,9 +128,10 @@ onBeforeUnmount(() => { .app-dialog .dialog-footer { @apply flex justify-end gap-2; + padding-top: 0; } -/* Card 自带的上下 padding 与左右保持同一视觉节奏;正文滚动区占满 content 可用高度。 */ +/* 标题与底栏保留一致的边距,正文按内容和可用视口确定高度。 */ .app-dialog.n-card > .n-card-header { padding-top: var(--n-padding-left); }