From 0b7ed771aaddc7d5513f9724a89bfa0155f8c4fb Mon Sep 17 00:00:00 2001 From: xingyu Date: Thu, 8 Jun 2023 10:57:02 +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?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Modal/src/index.less | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Modal/src/index.less b/src/components/Modal/src/index.less index 709e4dac..e456147c 100644 --- a/src/components/Modal/src/index.less +++ b/src/components/Modal/src/index.less @@ -108,19 +108,19 @@ 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; }