fix: have width and height defined in user-icon-style mixin

This commit is contained in:
Julian Lam
2022-09-14 11:05:51 -04:00
parent 9932a0dd1a
commit 5d332ea052
2 changed files with 3 additions and 3 deletions

View File

@@ -80,9 +80,7 @@
@include user-icon;
$size: var(--avatar-size);
width: $size;
height: $size;
@include user-icon-style($line-height-base, calc($size * 0.6));
@include user-icon-style($size, calc($size * 0.6));
&.avatar-rounded {
border-radius: 50%;

View File

@@ -68,6 +68,8 @@
@mixin user-icon-style($size: 32px, $font-size: 1.5rem, $border-radius: inherit){
border-radius: $border-radius;
width: $size;
height: $size;
line-height: $size;
font-size: $font-size;
}