From aa1689fed8e58d52db2367263ccbcc08853ff848 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Wed, 24 Aug 2022 21:56:10 +0800 Subject: [PATCH] Revert "fix(Popup&Toast): invalid adaptive width (#10961)" This reverts commit b6dd0cb36c0445e199335c36a4c21e696cf8b073. --- packages/vant/src/popup/index.less | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/vant/src/popup/index.less b/packages/vant/src/popup/index.less index 240ef9536..ab4a72243 100644 --- a/packages/vant/src/popup/index.less +++ b/packages/vant/src/popup/index.less @@ -25,10 +25,8 @@ &--center { top: 50%; - left: 0; - right: 0; - margin: 0 auto; - transform: translateY(-50%); + left: 50%; + transform: translate3d(-50%, -50%, 0); &.van-popup--round { border-radius: var(--van-popup-round-border-radius);