mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 06:43:45 +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() {
|
||||
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…
Reference in New Issue
Block a user