@@ -108,33 +108,43 @@ const StdcmConsist = ({ setCurrentSimulationInputs, disabled = false }: StdcmCon
108
108
name = { t ( 'consist.consist' ) }
109
109
title = { < ConsistCardTitle rollingStock = { rollingStock } /> }
110
110
disabled = { disabled }
111
+ className = "consist"
111
112
>
112
- < div className = "stdcm-v2-consist" >
113
- < div className = "suggestions" >
114
- < ComboBox
115
- id = "tractionEngine"
116
- label = { t ( 'consist.tractionEngine' ) }
117
- value = { filters . text . toUpperCase ( ) }
118
- onClick = { onInputClick }
119
- onChange = { onInputChange }
120
- autoComplete = "off"
121
- disabled = { disabled }
122
- suggestions = { filteredRollingStockList }
123
- getSuggestionLabel = { ( suggestion : LightRollingStockWithLiveries ) => getLabel ( suggestion ) }
124
- onSelectSuggestion = { onSelectSuggestion }
125
- />
126
- </ div >
127
- < div className = "stdcm-v2-consist__properties d-flex justify-content-between" >
128
- < Input id = "tonnage" label = { t ( 'consist.tonnage' ) } trailingContent = "t" />
129
- < Input id = "length" label = { t ( 'consist.length' ) } trailingContent = "m" />
130
- </ div >
131
- < SpeedLimitByTagSelector
113
+ < div className = "traction-engine" >
114
+ < ComboBox
115
+ id = "tractionEngine"
116
+ label = { t ( 'consist.tractionEngine' ) }
117
+ value = { filters . text . toUpperCase ( ) }
118
+ onClick = { onInputClick }
119
+ onChange = { onInputChange }
120
+ autoComplete = "off"
132
121
disabled = { disabled }
133
- selectedSpeedLimitByTag = { speedLimitByTag }
134
- speedLimitsByTags = { speedLimitsByTags }
135
- dispatchUpdateSpeedLimitByTag = { dispatchUpdateSpeedLimitByTag }
122
+ suggestions = { filteredRollingStockList }
123
+ getSuggestionLabel = { ( suggestion : LightRollingStockWithLiveries ) => getLabel ( suggestion ) }
124
+ onSelectSuggestion = { onSelectSuggestion }
136
125
/>
137
126
</ div >
127
+ < div className = "stdcm-v2-consist__properties" >
128
+ < Input
129
+ id = "tonnage"
130
+ label = { t ( 'consist.tonnage' ) }
131
+ trailingContent = "t"
132
+ inputFieldWrapperClassname = "weight"
133
+ />
134
+ < Input
135
+ id = "length"
136
+ label = { t ( 'consist.length' ) }
137
+ trailingContent = "m"
138
+ inputFieldWrapperClassname = "length"
139
+ />
140
+ </ div >
141
+ < SpeedLimitByTagSelector
142
+ disabled = { disabled }
143
+ selectedSpeedLimitByTag = { speedLimitByTag }
144
+ speedLimitsByTags = { speedLimitsByTags }
145
+ dispatchUpdateSpeedLimitByTag = { dispatchUpdateSpeedLimitByTag }
146
+ className = "speed-limit-by-tag-selector"
147
+ />
138
148
</ StdcmCard >
139
149
) ;
140
150
} ;
0 commit comments