mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 10:42:45 +08:00
UX: Fix width on avatar flair.
This commit is contained in:
parent
8551d821a0
commit
6955c39c68
|
@ -13,7 +13,13 @@ createWidget('avatar-flair', {
|
|||
},
|
||||
|
||||
buildClasses(attrs) {
|
||||
return 'avatar-flair-' + attrs.primary_group_name + (attrs.primary_group_flair_bg_color ? ' rounded' : '');
|
||||
let defaultClass = `avatar-flair-${attrs.primary_group_name} ${(attrs.primary_group_flair_bg_color ? 'rounded' : '')}`;
|
||||
|
||||
if (!this.isIcon(attrs)) {
|
||||
defaultClass += ' avatar-flair-image';
|
||||
}
|
||||
|
||||
return defaultClass;
|
||||
},
|
||||
|
||||
buildAttributes(attrs) {
|
||||
|
|
|
@ -23,12 +23,15 @@
|
|||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.avatar-flair {
|
||||
$size: 50px;
|
||||
$size: 50px;
|
||||
|
||||
.avatar-flair-image {
|
||||
width: $size;
|
||||
}
|
||||
|
||||
.avatar-flair {
|
||||
background-size: $size;
|
||||
height: $size;
|
||||
width: $size;
|
||||
|
||||
i {
|
||||
font-size: $size !important;
|
||||
|
|
Loading…
Reference in New Issue
Block a user