mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 21:57:36 +08:00
FIX: simplify styling of category-name when using category-drop/link
This commit is contained in:
parent
cf592fa35d
commit
b4aad15267
|
@ -73,9 +73,9 @@ export function categoryBadgeHTML(category, opts) {
|
|||
}
|
||||
|
||||
if (restricted) {
|
||||
html += `${iconHTML('lock')}<span ${categoryDir}>${categoryName}</span>`;
|
||||
html += `${iconHTML('lock')}<span class="category-name" ${categoryDir}>${categoryName}</span>`;
|
||||
} else {
|
||||
html += `<span ${categoryDir}>${categoryName}</span>`;
|
||||
html += `<span class="category-name" ${categoryDir}>${categoryName}</span>`;
|
||||
}
|
||||
html += "</span>";
|
||||
|
||||
|
|
|
@ -74,9 +74,9 @@ export default ComboBoxComponent.extend({
|
|||
}).htmlSafe();
|
||||
} else {
|
||||
if (this.get("noSubcategories")) {
|
||||
content.label = this.get("noCategoriesLabel");
|
||||
content.label = `<span class="category-name">${this.get("noCategoriesLabel")}</span>`;
|
||||
} else {
|
||||
content.label = this.get("allCategoriesLabel");
|
||||
content.label = `<span class="category-name">${this.get("allCategoriesLabel")}</span>`;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user