fix(Popup&Toast): invalid adaptive width (#10961)

* fix(Popup&Toast):Invalid adaptive width

* Update index.less

Co-authored-by: neverland <jait.chen@foxmail.com>
This commit is contained in:
yinhaogt
2022-08-24 21:45:10 +08:00
committed by GitHub
parent 4b2e06b34d
commit b6dd0cb36c

View File

@@ -25,8 +25,10 @@
&--center {
top: 50%;
left: 50%;
transform: translate3d(-50%, -50%, 0);
left: 0;
right: 0;
margin: 0 auto;
transform: translateY(-50%);
&.van-popup--round {
border-radius: var(--van-popup-round-border-radius);