From c4ca4ef91edc94f993d6bf33a08e909e911c8089 Mon Sep 17 00:00:00 2001 From: neverland <chenjiahan@youzan.com> Date: Sun, 23 Jan 2022 21:41:22 +0800 Subject: [PATCH] fix(Icon): remove white space under image when using image URL (#10224) --- src/icon/index.less | 1 + 1 file changed, 1 insertion(+) diff --git a/src/icon/index.less b/src/icon/index.less index 97411ede3..9842537e0 100644 --- a/src/icon/index.less +++ b/src/icon/index.less @@ -3,6 +3,7 @@ .van-icon { &__image { + display: block; width: 1em; height: 1em; object-fit: contain;