From 38ce68dd04c0715559ccbc4877de0674b19c77ba Mon Sep 17 00:00:00 2001 From: GouJ Date: Sat, 26 Sep 2026 23:35:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=A8=E5=8D=95=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E6=AD=A3=E6=96=87=E6=8C=89=E8=A7=86=E5=8F=A3=E5=8A=A8=E6=80=81?= =?UTF-8?q?=E9=99=90=E5=88=B6=E9=AB=98=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ui/AppDialog.vue | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/src/components/ui/AppDialog.vue b/src/components/ui/AppDialog.vue index a71a0c8..e7ffa80 100644 --- a/src/components/ui/AppDialog.vue +++ b/src/components/ui/AppDialog.vue @@ -14,7 +14,7 @@ const open = defineModel('open', { default: false }) :mask-closable="!busy" :close-on-esc="!busy" :style="{ width: wide ? '1040px' : '600px' }" - class="app-dialog" :class="{ 'app-dialog--with-footer': $slots.footer }" + class="app-dialog" role="dialog" :aria-label="title" > @@ -38,27 +38,16 @@ const open = defineModel('open', { default: false }) .app-dialog { @apply max-w-[calc(100vw-32px)] max-h-[calc(100dvh-32px)] flex flex-col overflow-hidden; } -.app-dialog--with-footer { - height: min(760px, calc(100dvh - 32px)); -} -@media (max-width: 760px) { - .app-dialog--with-footer { - height: calc(100dvh - 16px); - } -} .app-dialog .n-card-header { @apply shrink-0; } .dialog-body-scroll.n-scrollbar { - @apply min-h-0 h-full; + @apply min-h-0; + max-height: calc(100dvh - 220px); } .app-dialog .n-card__content { @apply min-h-0 overflow-hidden; } -.app-dialog--with-footer .n-card__content { - @apply flex-1; - height: 0; -} .app-dialog .n-card-header__close { @apply grid place-items-center w-10 h-10 -m-2 rounded-none bg-transparent; }