FIX: do not show solved/unsolved filter when editing category (#254)

UX: add spacing for solved/unsolved filter dropdown
This commit is contained in:
Meghna 2023-09-26 18:39:17 +05:30 committed by GitHub
parent 3b9ecc69c6
commit 9fbf43e2f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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) {

View File

@ -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;
} }