fix: 修复表单弹窗固定底部与关闭按钮热区视觉

This commit is contained in:
GouJ committed 2026-09-26 23:28:42 +08:00
1 parent bfc8ebc452
commit e5b2b4b2cf
1 file changed
+11 -4
+11 -4
View File
@@ -36,7 +36,7 @@ const open = defineModel<boolean>('open', { default: false })
--app-field-hover: var(--app-control-hover);
}
.app-dialog {
@apply max-w-[calc(100vw-32px)] max-h-[calc(100dvh-32px)] flex flex-col;
@apply max-w-[calc(100vw-32px)] h-[min(760px,calc(100dvh-32px))] max-h-[calc(100dvh-32px)] flex flex-col overflow-hidden;
}
.app-dialog .n-card-header {
@apply shrink-0;
@@ -46,15 +46,22 @@ const open = defineModel<boolean>('open', { default: false })
}
.app-dialog .n-card__content {
@apply min-h-0 flex-1 overflow-hidden;
height: 0;
}
.app-dialog .n-card-header__close {
@apply grid place-items-center w-10 h-10 -m-2 rounded-none;
@apply grid place-items-center w-10 h-10 -m-2 rounded-none bg-transparent;
}
.app-dialog .n-card-header__close .n-base-icon {
@apply p-2 box-content bg-(--app-subtle);
}
.app-dialog .n-card-header__close:hover {
@apply bg-(--app-subtle);
@apply bg-transparent;
}
.app-dialog .n-card-header__close:hover .n-base-icon {
@apply bg-(--app-control-hover);
}
.app-dialog .n-card__footer {
@apply shrink-0;
@apply shrink-0 bg-(--app-surface);
}
.app-dialog .dialog-footer {
@apply flex justify-end gap-2;