From 14126e9a386d612317790eb9d9956c4f3c343a54 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Tue, 4 Feb 2020 15:34:56 +0100 Subject: [PATCH] UX: do not display pinned option description on mobile (#8846) --- .../select-kit/components/pinned-options.js.es6 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/select-kit/components/pinned-options.js.es6 b/app/assets/javascripts/select-kit/components/pinned-options.js.es6 index 6c4cd2f832d..c04142667a9 100644 --- a/app/assets/javascripts/select-kit/components/pinned-options.js.es6 +++ b/app/assets/javascripts/select-kit/components/pinned-options.js.es6 @@ -27,14 +27,18 @@ export default DropdownSelectBoxComponent.extend({ { id: "pinned", name: I18n.t(`topic_statuses.pinned${globally}.title`), - description: I18n.t(`topic_statuses.pinned${globally}.help`), + description: this.site.mobileView + ? null + : I18n.t(`topic_statuses.pinned${globally}.help`), icon: "thumbtack" }, { id: "unpinned", name: I18n.t("topic_statuses.unpinned.title"), icon: "thumbtack unpinned", - description: I18n.t("topic_statuses.unpinned.help") + description: this.site.mobileView + ? null + : I18n.t("topic_statuses.unpinned.help") } ]; }),