Browse Source

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

luckyCao 6 năm trước cách đây
mục cha
commit
2c7911e580
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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;
 
   >img {
-    width: 100%;
+    display: block;
     height: 100%;
+    vertical-align: middle;
   }
 
   @include m(circle) {