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:
Kyle Zhao 2019-12-10 14:44:19 -08:00 committed by Sam
parent 505b8b76bc
commit 2720531750

View File

@ -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>";
}
});