Browse Source

Avatar: fix image not center vertically issue (#16489)

luckyCao 6 years ago
parent
commit
2c7911e580
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/theme-chalk/src/avatar.scss

+ 2 - 1
packages/theme-chalk/src/avatar.scss

@@ -14,8 +14,9 @@
   font-size: $--avatar-text-font-size;
   font-size: $--avatar-text-font-size;
 
 
   >img {
   >img {
-    width: 100%;
+    display: block;
     height: 100%;
     height: 100%;
+    vertical-align: middle;
   }
   }
 
 
   @include m(circle) {
   @include m(circle) {