@@ -252,21 +252,23 @@ export default function AgentResources(props: AgentResourcesProps) {
252252 const renderFirstField = ( ) => {
253253 if ( useDropdownForFirstField && dropdownOptions . length > 0 ) {
254254 return (
255- < Autocomplete
256- width = 'medium'
257- placeholder = ' '
258- options = { dropdownOptions }
259- value = { watch ( `${ name } .${ index } .${ fieldNames . field1 } ` ) || null }
260- onChange = { ( _ , value ) => {
261- setValue ( `${ name } .${ index } .${ fieldNames . field1 } ` , value || '' )
262- } }
263- disabled = { disabled || frozen }
264- label = ''
265- hideLabel
266- noMarginTop
267- errorText = { field1Error ?. message ?. toString ( ) }
268- helperText = { field1Error ?. message ?. toString ( ) }
269- />
255+ < Box sx = { { mt : 1 } } >
256+ < Autocomplete
257+ width = 'medium'
258+ placeholder = ' '
259+ options = { dropdownOptions }
260+ value = { watch ( `${ name } .${ index } .${ fieldNames . field1 } ` ) || null }
261+ onChange = { ( _ , value ) => {
262+ setValue ( `${ name } .${ index } .${ fieldNames . field1 } ` , value || '' )
263+ } }
264+ disabled = { disabled || frozen }
265+ label = ''
266+ hideLabel
267+ noMarginTop
268+ errorText = { field1Error ?. message ?. toString ( ) }
269+ helperText = { field1Error ?. message ?. toString ( ) }
270+ />
271+ </ Box >
270272 )
271273 }
272274 return (
@@ -291,7 +293,7 @@ export default function AgentResources(props: AgentResourcesProps) {
291293 < Box
292294 sx = { {
293295 display : 'flex' ,
294- alignItems : 'flex-end ' ,
296+ alignItems : 'flex-start ' ,
295297 maxWidth : 'calc(100% - 40px)' ,
296298 gap : '10px' ,
297299 } }
@@ -345,7 +347,7 @@ export default function AgentResources(props: AgentResourcesProps) {
345347 ) }
346348 </ Box >
347349 { addLabel && ! disabled && (
348- < IconButton sx = { { alignSelf : 'flex-end ' } } onClick = { ( ) => remove ( index ) } >
350+ < IconButton sx = { { alignSelf : 'flex-start' , mt : '12px ' } } onClick = { ( ) => remove ( index ) } >
349351 < Clear />
350352 </ IconButton >
351353 ) }
0 commit comments