UX: ensures pinned options icon is not on a new line (#8845)

This commit is contained in:
Joffrey JAFFEUX 2020-02-04 15:34:37 +01:00 committed by GitHub
parent 1d54e78311
commit ca63502ce6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ export default DropdownSelectBoxComponent.extend({
const state = pinned === "pinned" ? `pinned${globally}` : "unpinned";
const title = I18n.t(`topic_statuses.${state}.title`);
content.label = `${title}${iconHTML("caret-down")}`.htmlSafe();
content.label = `<span>${title}</span>${iconHTML("caret-down")}`.htmlSafe();
content.title = title;
content.name = state;
content.icon = `thumbtack${state === "unpinned" ? " unpinned" : ""}`;