Skip to content

Commit 41fb1e9

Browse files
authored
fixed avatar size when no person is loaded (#130)
Closed by mistake
1 parent f2ef5d8 commit 41fb1e9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/mgt-person/mgt-person.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
$avatar-size-s: var(--avatar-size-s, 24px);
1212
$avatar-size: var(--avatar-size, 48px);
13-
$avatar-font-size-s: var(--avatar-font-size--s, 16px);
14-
$avatar-font-size: var(--avatar-font-size, 32px);
1513
$avatar-border: var(--avatar-border, 0);
1614
$initials-color: var(--initials-color, white);
1715
$initials-background-color: var(--initials-background-color, #{$ms-color-magenta});
@@ -38,7 +36,7 @@ mgt-person .root {
3836
position: relative;
3937
display: flex;
4038
align-items: center;
41-
font-family: var(--default-font-family, "Segoe UI");
39+
font-family: var(--default-font-family, 'Segoe UI');
4240
}
4341

4442
:host .Details,
@@ -88,10 +86,12 @@ mgt-person .user-avatar {
8886
:host .avatar-icon,
8987
mgt-person .avatar-icon {
9088
flex: 1 1 auto;
91-
font-size: $avatar-font-size;
89+
line-height: 1;
90+
margin: 0;
91+
font-size: $avatar-size;
9292

9393
&.small {
94-
font-size: $avatar-font-size-s;
94+
font-size: $avatar-size-s;
9595
}
9696

9797
&.row-span-2 {

0 commit comments

Comments
 (0)