Skip to content

Commit

Permalink
Fix z-index issue with additional filters
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Apr 17, 2024
1 parent 9047872 commit af21458
Showing 1 changed file with 22 additions and 24 deletions.
46 changes: 22 additions & 24 deletions src/components/SearchFilter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,30 +62,28 @@
</multiselect>
</b-form-group>

<div v-if="showAdditionalFilters" class="additional-filters">
<b-form-group :label="$t('search.additionalFilters')">
<b-form-radio-group v-model="filtersAndOr" :options="andOrOptions" name="logical" size="sm" />

<b-dropdown size="sm" :text="$t('search.addFilter')" block variant="primary" class="queryables mt-2 mb-3" menu-class="w-100">
<template v-for="queryable in sortedQueryables">
<b-dropdown-item v-if="queryable.supported" :key="queryable.id" @click="additionalFieldSelected(queryable)">
{{ queryable.title }}
<b-badge variant="dark" class="ml-2">{{ queryable.id }}</b-badge>
</b-dropdown-item>
</template>
</b-dropdown>

<QueryableInput
v-for="(filter, index) in filters" :key="filter.id"
:value.sync="filter.value"
:operator.sync="filter.operator"
:queryable="filter.queryable"
:index="index"
:cql="cql"
@remove-queryable="removeQueryable(index)"
/>
</b-form-group>
</div>
<b-form-group v-if="showAdditionalFilters" class="additional-filters" :label="$t('search.additionalFilters')">
<b-form-radio-group v-model="filtersAndOr" :options="andOrOptions" name="logical" size="sm" />

<b-dropdown size="sm" :text="$t('search.addFilter')" block variant="primary" class="queryables mt-2 mb-3" menu-class="w-100">
<template v-for="queryable in sortedQueryables">
<b-dropdown-item v-if="queryable.supported" :key="queryable.id" @click="additionalFieldSelected(queryable)">
{{ queryable.title }}
<b-badge variant="dark" class="ml-2">{{ queryable.id }}</b-badge>
</b-dropdown-item>
</template>
</b-dropdown>

<QueryableInput
v-for="(filter, index) in filters" :key="filter.id"
:value.sync="filter.value"
:operator.sync="filter.operator"
:queryable="filter.queryable"
:index="index"
:cql="cql"
@remove-queryable="removeQueryable(index)"
/>
</b-form-group>

<hr v-if="canFilterExtents || conformances.CollectionIdFilter || conformances.ItemIdFilter || showAdditionalFilters">

Expand Down

0 comments on commit af21458

Please sign in to comment.