Skip to content

A platform for community discussion. Free, open, simple.

FIX: force full width on mobile for cat and tag drops

Joffrey JAFFEUX47bef377f6e0
diff --git a/app/assets/javascripts/select-kit/components/category-drop.js.es6 b/app/assets/javascripts/select-kit/components/category-drop.js.es6
index c589dc2091c..89a8d485f0d 100644
--- a/app/assets/javascripts/select-kit/components/category-drop.js.es6
+++ b/app/assets/javascripts/select-kit/components/category-drop.js.es6
@@ -18,6 +18,7 @@ export default ComboBoxComponent.extend({
categoryStyle: Ember.computed.alias("siteSettings.category_style"),
noCategoriesLabel: I18n.t("categories.no_subcategory"),
mutateAttributes() {},
+ fullWidthOnMobile: true,
init() {
this._super();
diff --git a/app/assets/javascripts/select-kit/components/tag-drop.js.es6 b/app/assets/javascripts/select-kit/components/tag-drop.js.es6
index 8919679f757..1ebcd1e9bae 100644
--- a/app/assets/javascripts/select-kit/components/tag-drop.js.es6
+++ b/app/assets/javascripts/select-kit/components/tag-drop.js.es6
@@ -19,6 +19,7 @@ export default ComboBoxComponent.extend({
tagId: null,
categoryStyle: Ember.computed.alias("siteSettings.category_style"),
mutateAttributes() {},
+ fullWidthOnMobile: true,
@computed("tagId")
noTagsSelected() {