File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -143,8 +143,8 @@ const RegionAndDeptFilters = ({ onChange }: RegionAndDeptFiltersProps) => {
143
143
écologique.
144
144
</ p >
145
145
) }
146
- < div className = "grid grid-cols-[repeat(auto-fill,minmax(300px,1fr))] gap-x-[50px] gap-y-5 justify- items-start items-end " >
147
- < Field title = "Région" className = "w-full" >
146
+ < div className = "grid sm: grid-cols-2 gap-6 items-end max-w-3xl " >
147
+ < Field title = "Région" >
148
148
< Select
149
149
placeholder = "Toutes les régions"
150
150
options = { regions
@@ -159,7 +159,7 @@ const RegionAndDeptFilters = ({ onChange }: RegionAndDeptFiltersProps) => {
159
159
}
160
160
/>
161
161
</ Field >
162
- < Field title = "Département" className = "w-full" >
162
+ < Field title = "Département" >
163
163
< Select
164
164
placeholder = "Tous les départements"
165
165
options = { departments
@@ -174,21 +174,20 @@ const RegionAndDeptFilters = ({ onChange }: RegionAndDeptFiltersProps) => {
174
174
}
175
175
/>
176
176
</ Field >
177
-
177
+ </ div >
178
+ { ( selectedDepartment || selectedRegion ) && (
178
179
< Button
179
180
variant = "outlined"
181
+ size = "sm"
182
+ className = "mt-6"
180
183
onClick = { ( ) => {
181
184
setSelectedRegion ( emptyString ) ;
182
185
setSelectedDepartment ( emptyString ) ;
183
186
} }
184
- style = { {
185
- visibility :
186
- selectedDepartment || selectedRegion ? 'visible' : 'hidden' ,
187
- } }
188
187
>
189
188
Désactiver tous les filtres
190
189
</ Button >
191
- </ div >
190
+ ) }
192
191
</ >
193
192
) ;
194
193
} ;
You can’t perform that action at this time.
0 commit comments