From ad657c7c03c35df57a1419468ff5f568a0a592fb Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 23 Oct 2019 17:48:13 +0800 Subject: [PATCH] fix(Icon): info position (#2194) --- packages/info/index.less | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/info/index.less b/packages/info/index.less index 6840267e..3ecf0a61 100644 --- a/packages/info/index.less +++ b/packages/info/index.less @@ -3,14 +3,14 @@ .van-info { position: absolute; + top: 0; right: 0; box-sizing: border-box; white-space: nowrap; text-align: center; - transform: translateX(50%); + transform: translate(50%, -50%); transform-origin: 100%; - .theme(top, 'calc(@info-size / -2)'); .theme(min-width, '@info-size'); .theme(padding, '@info-padding'); .theme(color, '@info-color');