FIX: do not show solved/unsolved filter when editing category (#254)
UX: add spacing for solved/unsolved filter dropdown
This commit is contained in:
parent
3b9ecc69c6
commit
9fbf43e2f0
|
@ -21,7 +21,8 @@ export default class SolvedStatusFilter extends Component {
|
||||||
|
|
||||||
if (
|
if (
|
||||||
!helper.siteSettings.show_filter_by_solved_status ||
|
!helper.siteSettings.show_filter_by_solved_status ||
|
||||||
router.currentRouteName === "discovery.categories"
|
router.currentRouteName === "discovery.categories" ||
|
||||||
|
args.editingCategory
|
||||||
) {
|
) {
|
||||||
return false;
|
return false;
|
||||||
} else if (helper.siteSettings.allow_solved_on_all_topics) {
|
} else if (helper.siteSettings.allow_solved_on_all_topics) {
|
||||||
|
|
|
@ -3,6 +3,7 @@ $solved-color: green;
|
||||||
.select-kit {
|
.select-kit {
|
||||||
&.solved-status-filter {
|
&.solved-status-filter {
|
||||||
min-width: auto;
|
min-width: auto;
|
||||||
|
margin-right: 0.5em;
|
||||||
.select-kit-header {
|
.select-kit-header {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue