Skip to content
Snippets Groups Projects
Commit 577f4561 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

fix filters height and disable line wrap & config multiselect

parent 6f1cfc38
No related branches found
No related tags found
1 merge request!749REDMINE_ISSUE-19724 | Liste et carte – Faire de la sélection multiple dans les filtres
...@@ -146,22 +146,13 @@ ...@@ -146,22 +146,13 @@
v-model="form.type" v-model="form.type"
:options="featureTypeOptions" :options="featureTypeOptions"
:multiple="true" :multiple="true"
:searchable="false"
:close-on-select="false"
:show-labels="false"
placeholder="Sélectionner un type"
track-by="value" track-by="value"
label="name" label="name"
> />
<template slot="clear">
<div
v-if="form.type"
class="multiselect__clear"
@click.prevent.stop="form.type = ''"
>
<i
class="close icon"
aria-hidden="true"
/>
</div>
</template>
</Multiselect>
</div> </div>
<div <div
id="statut" id="statut"
...@@ -170,24 +161,15 @@ ...@@ -170,24 +161,15 @@
<label>Statut</label> <label>Statut</label>
<Multiselect <Multiselect
v-model="form.status" v-model="form.status"
:options="filteredStatusChoices" :options="statusOptions"
:multiple="true" :multiple="true"
:searchable="false"
:close-on-select="false"
:show-labels="false"
placeholder="Sélectionner un statut"
track-by="value" track-by="value"
label="name" label="name"
> />
<template slot="clear">
<div
v-if="form.status"
class="multiselect__clear"
@click.prevent.stop="form.status = ''"
>
<i
class="close icon"
aria-hidden="true"
/>
</div>
</template>
</Multiselect>
</div> </div>
<div <div
id="name" id="name"
...@@ -318,7 +300,7 @@ export default { ...@@ -318,7 +300,7 @@ export default {
featureTypeOptions() { featureTypeOptions() {
return this.feature_types.map((el) => ({ name: el.title, value: el.slug })); return this.feature_types.map((el) => ({ name: el.title, value: el.slug }));
}, },
filteredStatusChoices() { statusOptions() {
//* if project is not moderate, remove pending status //* if project is not moderate, remove pending status
return statusChoices.filter((el) => return statusChoices.filter((el) =>
this.project && this.project.moderation ? true : el.value !== 'pending' this.project && this.project.moderation ? true : el.value !== 'pending'
...@@ -430,6 +412,9 @@ export default { ...@@ -430,6 +412,9 @@ export default {
#form-filters { #form-filters {
margin: 0; margin: 0;
label + div {
min-height: 42px;
}
} }
.ui.dropdown .menu .left.menu, .ui.dropdown > .left.menu .menu { .ui.dropdown .menu .left.menu, .ui.dropdown > .left.menu .menu {
...@@ -479,3 +464,9 @@ export default { ...@@ -479,3 +464,9 @@ export default {
} }
} }
</style> </style>
<style>
#form-filters .multiselect__tags {
white-space: normal !important;
}
</style>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment