fix: 表单弹窗使用网格自动分配正文剩余高度
This commit is contained in:
1 parent
38ce68dd04
commit
a39774ee55
1 file changed
+8
-5
@@ -36,17 +36,19 @@ 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 overflow-hidden;
|
||||
@apply max-w-[calc(100vw-32px)] max-h-[calc(100dvh-32px)] overflow-hidden;
|
||||
display: grid;
|
||||
grid-template-rows: auto minmax(0, 1fr) auto;
|
||||
}
|
||||
.app-dialog .n-card-header {
|
||||
@apply shrink-0;
|
||||
grid-row: 1;
|
||||
}
|
||||
.dialog-body-scroll.n-scrollbar {
|
||||
@apply min-h-0;
|
||||
max-height: calc(100dvh - 220px);
|
||||
@apply min-h-0 h-full;
|
||||
}
|
||||
.app-dialog .n-card__content {
|
||||
@apply min-h-0 overflow-hidden;
|
||||
grid-row: 2;
|
||||
}
|
||||
.app-dialog .n-card-header__close {
|
||||
@apply grid place-items-center w-10 h-10 -m-2 rounded-none bg-transparent;
|
||||
@@ -61,7 +63,8 @@ const open = defineModel<boolean>('open', { default: false })
|
||||
@apply bg-(--app-control-hover);
|
||||
}
|
||||
.app-dialog .n-card__footer {
|
||||
@apply shrink-0 bg-(--app-surface);
|
||||
@apply bg-(--app-surface);
|
||||
grid-row: 3;
|
||||
}
|
||||
.app-dialog .dialog-footer {
|
||||
@apply flex justify-end gap-2;
|
||||
|
||||
Reference in new issue
Block a user