diff --git a/packages/icon/index.less b/packages/icon/index.less index a2c2d322..6adff008 100644 --- a/packages/icon/index.less +++ b/packages/icon/index.less @@ -2,7 +2,7 @@ @import '@vant/icons/src/index.less'; :host { - display: flex; + display: inline-flex; align-items: center; justify-content: center; } diff --git a/packages/nav-bar/index.less b/packages/nav-bar/index.less index 0f7f3bc6..d64c4140 100644 --- a/packages/nav-bar/index.less +++ b/packages/nav-bar/index.less @@ -13,7 +13,7 @@ display: inline-block; vertical-align: middle; .theme(margin, '0 -@padding-md'); - .theme(padding, '0 -@padding-md'); + .theme(padding, '0 @padding-md'); .theme(color, '@nav-bar-text-color'); &--hover {