We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07b4150 commit 4effe6dCopy full SHA for 4effe6d
components/avatar/style/index.less
@@ -7,13 +7,14 @@
7
.reset-component();
8
9
position: relative;
10
- display: inline-block;
+ display: inline-flex;
11
overflow: hidden;
12
color: @avatar-color;
13
white-space: nowrap;
14
- text-align: center;
15
vertical-align: middle;
16
background: @avatar-bg;
+ justify-content: center;
17
+ align-items: center;
18
19
&-image {
20
background: transparent;
@@ -44,7 +45,6 @@
44
45
.avatar-size(@size, @font-size) {
46
width: @size;
47
height: @size;
- line-height: @size;
48
border-radius: 50%;
49
50
&-string {
@@ -55,5 +55,8 @@
55
56
&.@{avatar-prefix-cls}-icon {
57
font-size: @font-size;
58
+ .@{iconfont-css-prefix} {
59
+ margin: 0;
60
+ }
61
}
62
0 commit comments