mirror of
https://github.com/discourse/discourse.git
synced 2025-03-11 17:07:37 +08:00
FIX: Always add username span in quick access item (#8526)
Generate an empty `<span>` even if there is no username, because the first `<span>` is styled differently.
This commit is contained in:
parent
505b8b76bc
commit
2720531750
@ -67,6 +67,8 @@ createWidget("quick-access-item", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_usernameHtml() {
|
_usernameHtml() {
|
||||||
return this.attrs.username ? `<span>${this.attrs.username}</span> ` : "";
|
// Generate an empty `<span>` even if there is no username, because the
|
||||||
|
// first `<span>` is styled differently.
|
||||||
|
return this.attrs.username ? `<span>${this.attrs.username}</span> ` : "<span></span>";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user