UX: Prevent badges on usercards from overflowing (#12037)
This commit is contained in:
@@ -2,7 +2,7 @@ import Component from "@ember/component";
|
||||
import discourseComputed from "discourse-common/utils/decorators";
|
||||
|
||||
export default Component.extend({
|
||||
tagName: "span",
|
||||
tagName: "",
|
||||
|
||||
@discourseComputed("count")
|
||||
showGrantCount(count) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<a href={{this.badgeUrl}}>
|
||||
<a class="user-card-badge-link" href={{this.badgeUrl}}>
|
||||
{{#badge-button badge=@badge}}
|
||||
{{#if this.showGrantCount}}
|
||||
<span class="count">(× {{@count}})</span>
|
||||
|
||||
Reference in New Issue
Block a user