diff --git a/src/components/Modal/src/index.less b/src/components/Modal/src/index.less index e456147c..709e4dac 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 (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; }