@@ -88,38 +88,40 @@ const ContextVarsSection = ({ stepId, hypervisor }) => {
88
88
89
89
return (
90
90
< Box display = "grid" gap = "1em" >
91
- < Accordion
92
- variant = "transparent"
93
- TransitionProps = { { unmountOnExit : false } }
94
- >
95
- < AccordionSummary >
96
- < Legend
97
- disableGutters
98
- data-cy = { 'context-custom-vars' }
99
- title = { T . ContextCustomVariables }
100
- tooltip = { T . ContextCustomVariablesConcept }
101
- />
102
- </ AccordionSummary >
103
- < AttributePanel
104
- allActionsEnabled
105
- handleAdd = { handleChangeAttribute }
106
- handleEdit = { handleChangeAttribute }
107
- handleDelete = { handleChangeAttribute }
108
- attributes = { unknownVars }
109
- filtersSpecialAttributes = { false }
110
- enableEdit = { ( name = '' ) => {
111
- const regex = / ^ e t h \d * (?: _ [ A - Z a - z 0 - 9 ] + ) + $ / i
112
- if ( regex . test ( name ) ) {
113
- return (
114
- ( oneConfig ?. CONTEXT_ALLOW_ETH_UPDATES . toUpperCase ?. ( ) ?? '' ) ===
115
- 'YES'
116
- )
117
- }
91
+ < Box sx = { { maxWidth : '100%' , width : '100%' , overflowX : 'auto' } } >
92
+ < Accordion
93
+ variant = "transparent"
94
+ TransitionProps = { { unmountOnExit : false } }
95
+ >
96
+ < AccordionSummary >
97
+ < Legend
98
+ disableGutters
99
+ data-cy = { 'context-custom-vars' }
100
+ title = { T . ContextCustomVariables }
101
+ tooltip = { T . ContextCustomVariablesConcept }
102
+ />
103
+ </ AccordionSummary >
104
+ < AttributePanel
105
+ allActionsEnabled
106
+ handleAdd = { handleChangeAttribute }
107
+ handleEdit = { handleChangeAttribute }
108
+ handleDelete = { handleChangeAttribute }
109
+ attributes = { unknownVars }
110
+ filtersSpecialAttributes = { false }
111
+ enableEdit = { ( name = '' ) => {
112
+ const regex = / ^ e t h \d * (?: _ [ A - Z a - z 0 - 9 ] + ) + $ / i
113
+ if ( regex . test ( name ) ) {
114
+ return (
115
+ ( oneConfig ?. CONTEXT_ALLOW_ETH_UPDATES . toUpperCase ?. ( ) ??
116
+ '' ) === 'YES'
117
+ )
118
+ }
118
119
119
- return true
120
- } }
121
- />
122
- </ Accordion >
120
+ return true
121
+ } }
122
+ />
123
+ </ Accordion >
124
+ </ Box >
123
125
</ Box >
124
126
)
125
127
}
0 commit comments