From e5b2b4b2cf8b59b2f12ed1b4f62f28fc599ac7af Mon Sep 17 00:00:00 2001 From: GouJ Date: Sat, 26 Sep 2026 23:28:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E5=9B=BA=E5=AE=9A=E5=BA=95=E9=83=A8=E4=B8=8E?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E6=8C=89=E9=92=AE=E7=83=AD=E5=8C=BA=E8=A7=86?= =?UTF-8?q?=E8=A7=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ui/AppDialog.vue | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/components/ui/AppDialog.vue b/src/components/ui/AppDialog.vue index 0c336ea..c887fb5 100644 --- a/src/components/ui/AppDialog.vue +++ b/src/components/ui/AppDialog.vue @@ -36,7 +36,7 @@ const open = defineModel('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('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;