From 1e8fab3fe5dcac78e9d2c53682527259234f95ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=89=8D=E7=AB=AF=E7=88=B1=E7=A0=81=E5=A3=AB?= Date: Mon, 5 Jun 2023 11:04:37 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96modal=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E6=A0=B7=E5=BC=8F=20(#2824)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Modal/src/index.less | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/Modal/src/index.less b/src/components/Modal/src/index.less index a23be292..083f1c26 100644 --- a/src/components/Modal/src/index.less +++ b/src/components/Modal/src/index.less @@ -2,10 +2,7 @@ overflow: hidden; .ant-modal { - top: 0 !important; - right: 0 !important; - bottom: 0 !important; - left: 0 !important; + inset: 0 !important; width: 100% !important; height: 100%; @@ -63,8 +60,8 @@ } &-close { - font-weight: normal; outline: none; + font-weight: normal; } &-close-x { @@ -110,17 +107,20 @@ .ant-modal-confirm .ant-modal-body { padding: 24px !important; } -@media screen and (max-height: 600px) { + +@media screen and (height <= 600px) { .ant-modal { top: 60px; } } -@media screen and (max-height: 540px) { + +@media screen and (height <= 540px) { .ant-modal { top: 30px; } } -@media screen and (max-height: 480px) { + +@media screen and (height <= 480px) { .ant-modal { top: 10px; }