From 6aa3f934d0c527708f9a6dd13c17dec9f6c86b72 Mon Sep 17 00:00:00 2001 From: jinmao88 <50581550+jinmao88@users.noreply.github.com> Date: Tue, 6 Jun 2023 16:30:01 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"perf:=20=E4=BC=98=E5=8C=96modal?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E6=A0=B7=E5=BC=8F=20(#2824)"=20(#2834)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 1e8fab3fe5dcac78e9d2c53682527259234f95ce. --- 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 083f1c26..a23be292 100644 --- a/src/components/Modal/src/index.less +++ b/src/components/Modal/src/index.less @@ -2,7 +2,10 @@ overflow: hidden; .ant-modal { - inset: 0 !important; + top: 0 !important; + right: 0 !important; + bottom: 0 !important; + left: 0 !important; width: 100% !important; height: 100%; @@ -60,8 +63,8 @@ } &-close { - outline: none; font-weight: normal; + outline: none; } &-close-x { @@ -107,20 +110,17 @@ .ant-modal-confirm .ant-modal-body { padding: 24px !important; } - -@media screen and (height <= 600px) { +@media screen and (max-height: 600px) { .ant-modal { top: 60px; } } - -@media screen and (height <= 540px) { +@media screen and (max-height: 540px) { .ant-modal { top: 30px; } } - -@media screen and (height <= 480px) { +@media screen and (max-height: 480px) { .ant-modal { top: 10px; }