A platform for community discussion. Free, open, simple.
FIX: Always add username span in quick access item (#8526)
Kyle Zhao2720531750e8
diff --git a/app/assets/javascripts/discourse/widgets/quick-access-item.js.es6 b/app/assets/javascripts/discourse/widgets/quick-access-item.js.es6index 46b209d1af8..978ec5025ec 100644--- a/app/assets/javascripts/discourse/widgets/quick-access-item.js.es6+++ b/app/assets/javascripts/discourse/widgets/quick-access-item.js.es6@@ -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>";}});