Skip to content

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

FEATURE: allows tag editing on mobile (#6148)

Joffrey JAFFEUX568276fe40b7
diff --git a/app/assets/javascripts/discourse/controllers/composer.js.es6 b/app/assets/javascripts/discourse/controllers/composer.js.es6
index 1e5cb0761dd..870f60b854e 100644
--- a/app/assets/javascripts/discourse/controllers/composer.js.es6
+++ b/app/assets/javascripts/discourse/controllers/composer.js.es6
@@ -177,7 +177,6 @@ export default Ember.Controller.extend({
@computed("model.canEditTitle", "model.creatingPrivateMessage")
canEditTags(canEditTitle, creatingPrivateMessage) {
return (
- !this.site.mobileView &&
this.site.get("can_tag_topics") &&
canEditTitle &&
!creatingPrivateMessage &&
diff --git a/app/assets/javascripts/discourse/templates/composer.hbs b/app/assets/javascripts/discourse/templates/composer.hbs
index 8b472390676..e5e9033e7bd 100644
--- a/app/assets/javascripts/discourse/templates/composer.hbs
+++ b/app/assets/javascripts/discourse/templates/composer.hbs
@@ -57,7 +57,7 @@
{{#if model.showCategoryChooser}}
<div class="category-input">
- {{category-chooser value=model.categoryId scopedCategoryId=scopedCategoryId tabindex="3"}}
+ {{category-chooser fullWidthOnMobile=true value=model.categoryId scopedCategoryId=scopedCategoryId tabindex="3"}}
{{popup-input-tip validation=categoryValidation}}
</div>
{{/if}}
@@ -65,8 +65,6 @@
{{mini-tag-chooser tags=model.tags tabindex="4" categoryId=model.categoryId minimum=model.minimumRequiredTags}}
{{popup-input-tip validation=tagValidation}}
{{/if}}
-
-
</div>
{{/if}}
diff --git a/app/assets/stylesheets/mobile/compose.scss b/app/assets/stylesheets/mobile/compose.scss
index 8436b643daa..47b5999fc35 100644
--- a/app/assets/stylesheets/mobile/compose.scss
+++ b/app/assets/stylesheets/mobile/compose.scss
@@ -144,6 +144,23 @@
}
}
+ .with-tags {
+ .category-input {
+ flex-basis: auto;
+ flex: 1;
+ margin: 0;
+ width: 45%;
+ margin-bottom: 5px;
+ }
+
+ .mini-tag-chooser {
+ width: 50%;
+ flex: 1;
+ margin-left: 5px;
+ margin-bottom: 5px;
+ }
+ }
+
.title-input,
.category-input,
.users-input,