diff --git a/app/assets/javascripts/discourse/components/groups-info.js.es6 b/app/assets/javascripts/discourse/components/groups-info.js.es6 index 55a77b5cdc9..a95c9da3379 100644 --- a/app/assets/javascripts/discourse/components/groups-info.js.es6 +++ b/app/assets/javascripts/discourse/components/groups-info.js.es6 @@ -2,6 +2,7 @@ import computed from "ember-addons/ember-computed-decorators"; export default Ember.Component.extend({ tagName: "span", + classNames: ["group-info-details"], @computed("group.full_name", "group.title") showFullName(fullName, title) { diff --git a/app/assets/stylesheets/common/base/group.scss b/app/assets/stylesheets/common/base/group.scss index 20b6cf58520..9c2e433469e 100644 --- a/app/assets/stylesheets/common/base/group.scss +++ b/app/assets/stylesheets/common/base/group.scss @@ -56,9 +56,15 @@ .avatar-flair { background-size: $size; height: $size; + width: $size; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; .d-icon { - font-size: $size !important; + height: $size / 1.8; + width: $size / 1.8; } } } diff --git a/app/assets/stylesheets/common/base/groups.scss b/app/assets/stylesheets/common/base/groups.scss index ae41e6c4e0c..e02e91906e4 100644 --- a/app/assets/stylesheets/common/base/groups.scss +++ b/app/assets/stylesheets/common/base/groups.scss @@ -189,6 +189,10 @@ } .groups-info { + .group-info-details { + vertical-align: middle; + } + .groups-info-name { font-weight: bold; color: $primary; @@ -204,6 +208,11 @@ color: dark-light-choose($primary-medium, $secondary-medium); } + .group-avatar-flair { + vertical-align: middle; + color: $primary; + } + span { display: inline-block; } @@ -213,9 +222,15 @@ .avatar-flair { background-size: $size; height: $size; + width: $size; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; .d-icon { - font-size: $size !important; + height: $size / 1.8; + width: $size / 1.8; } }