Commit d08a1f4 1 parent 6fc8499 commit d08a1f4 Copy full SHA for d08a1f4
File tree 2 files changed +33
-27
lines changed
front/src/common/BootstrapSNCF
2 files changed +33
-27
lines changed Original file line number Diff line number Diff line change 1
1
.input-group-sm {
2
2
button {
3
3
height : 1.875rem ;
4
- font-size : .875rem ;
5
- padding : .125rem 1.5rem ;
4
+ font-size : 0 .875rem ;
5
+ padding : 0 .125rem 1.5rem ;
6
6
}
7
7
.form-control-container {
8
8
height : 1.875rem ;
9
9
input .form-control {
10
10
min-height : auto ;
11
- font-size : .875rem ;
11
+ font-size : 0 .875rem ;
12
12
}
13
13
}
14
14
}
21
21
.dropdown-item {
22
22
cursor : pointer ;
23
23
}
24
+
25
+ .osrd-dropdown-sncf {
26
+ right : 0 !important ;
27
+ }
Original file line number Diff line number Diff line change @@ -179,30 +179,32 @@ export default function InputGroupSNCF({
179
179
// eslint-disable-next-line react/no-unknown-property
180
180
x-placement = "bottom-end"
181
181
>
182
- { options . map ( ( option ) => (
183
- < React . Fragment key = { nextId ( ) } >
184
- < label className = "dropdown-item" htmlFor = { option . id } >
185
- < div
186
- onClick = { ( ) => {
187
- setSelected ( option ) ;
188
- handleType ( { type : option . id , value : 0 } ) ;
189
- setIsDropdownShown ( false ) ;
190
- } }
191
- role = "button"
192
- tabIndex = { 0 }
193
- >
194
- { option . label }
195
- </ div >
196
- </ label >
197
- < input
198
- type = "radio"
199
- name = { id }
200
- value = { option . id }
201
- id = { option . id }
202
- className = "sr-only"
203
- />
204
- </ React . Fragment >
205
- ) ) }
182
+ < ul >
183
+ { options . map ( ( option ) => (
184
+ < li key = { nextId ( ) } >
185
+ < label htmlFor = { option . id } className = "dropdown-item" >
186
+ < div
187
+ onClick = { ( ) => {
188
+ setSelected ( option ) ;
189
+ handleType ( { type : option . id , value : 0 } ) ;
190
+ setIsDropdownShown ( false ) ;
191
+ } }
192
+ role = "button"
193
+ tabIndex = { 0 }
194
+ >
195
+ { option . label }
196
+ </ div >
197
+ </ label >
198
+ < input
199
+ type = "radio"
200
+ name = { id }
201
+ value = { option . id }
202
+ id = { option . id }
203
+ className = "sr-only"
204
+ />
205
+ </ li >
206
+ ) ) }
207
+ </ ul >
206
208
</ div >
207
209
</ div >
208
210
</ div >
You can’t perform that action at this time.
0 commit comments