Skip to content

Commit 26ed861

Browse files
authored
B #7062: Fix resizing of VM config wizard (#3748)
Signed-off-by: Victor Hansson <[email protected]>
1 parent b1336d2 commit 26ed861

File tree

1 file changed

+33
-31
lines changed
  • src/fireedge/src/modules/components/Forms/VmTemplate/CreateForm/Steps/ExtraConfiguration/context

1 file changed

+33
-31
lines changed

src/fireedge/src/modules/components/Forms/VmTemplate/CreateForm/Steps/ExtraConfiguration/context/contextVarsSection.js

Lines changed: 33 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -88,38 +88,40 @@ const ContextVarsSection = ({ stepId, hypervisor }) => {
8888

8989
return (
9090
<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 = /^eth\d*(?:_[A-Za-z0-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 = /^eth\d*(?:_[A-Za-z0-9]+)+$/i
113+
if (regex.test(name)) {
114+
return (
115+
(oneConfig?.CONTEXT_ALLOW_ETH_UPDATES.toUpperCase?.() ??
116+
'') === 'YES'
117+
)
118+
}
118119

119-
return true
120-
}}
121-
/>
122-
</Accordion>
120+
return true
121+
}}
122+
/>
123+
</Accordion>
124+
</Box>
123125
</Box>
124126
)
125127
}

0 commit comments

Comments
 (0)