diff --git a/app/assets/javascripts/discourse/templates/groups.hbs b/app/assets/javascripts/discourse/templates/groups.hbs index 7cc273fe78f..2bfc5d1f5ab 100644 --- a/app/assets/javascripts/discourse/templates/groups.hbs +++ b/app/assets/javascripts/discourse/templates/groups.hbs @@ -1,15 +1,17 @@ {{#d-section pageClass="groups"}}

{{i18n "groups.index.title"}}

- {{text-field value=filterInput - placeholderKey="groups.filter_name" - class="groups-name-filter no-blur"}} +
+ {{combo-box value=type + content=types + clearable=true + none="groups.index.all_groups" + class="groups-type-filter"}} - {{combo-box value=type - content=types - clearable=true - none="groups.index.all_groups" - class="groups-type-filter"}} + {{text-field value=filterInput + placeholderKey="groups.filter_name" + class="groups-name-filter no-blur"}} +
{{#if model}} {{#conditional-loading-spinner condition=model.loading}} diff --git a/app/assets/stylesheets/common/base/groups.scss b/app/assets/stylesheets/common/base/groups.scss index 0ac9ce93d38..7740978859a 100644 --- a/app/assets/stylesheets/common/base/groups.scss +++ b/app/assets/stylesheets/common/base/groups.scss @@ -5,7 +5,8 @@ } } -.groups-name-filter, .groups-type-filter { +.groups-filter { + display: inline-block; float: right; } diff --git a/app/assets/stylesheets/mobile/groups.scss b/app/assets/stylesheets/mobile/groups.scss index 1f733f425fd..71d3caa4f9e 100644 --- a/app/assets/stylesheets/mobile/groups.scss +++ b/app/assets/stylesheets/mobile/groups.scss @@ -3,7 +3,12 @@ margin-top: 20px; } + .groups-filter { + display: block; + float: none; + } + .groups-name-filter { - margin-top: 20px; + margin-top: 10px; } }