diff --git a/frontend/src/component/playground/Playground/AdvancedPlayground.tsx b/frontend/src/component/playground/Playground/AdvancedPlayground.tsx index 9486e9594c..89d9ede07f 100644 --- a/frontend/src/component/playground/Playground/AdvancedPlayground.tsx +++ b/frontend/src/component/playground/Playground/AdvancedPlayground.tsx @@ -234,8 +234,6 @@ export const AdvancedPlayground: VFC<{ sx={{ px: 4, py: 3, - mb: 4, - mt: 2, background: theme.palette.background.elevation2, transition: 'width 0.4s ease', minWidth: matches ? 'auto' : '500px', @@ -260,7 +258,7 @@ export const AdvancedPlayground: VFC<{ sx={theme => ({ width: resultsWidth, transition: 'width 0.4s ease', - padding: theme.spacing(4, 2), + padding: theme.spacing(4, 4), })} > = ({ return ( = ({ onChange={changeContextValue} options={options} multiple={isAdvancedPlayground} - sx={{ width: 200, maxWidth: '100%' }} + sx={{ width: 370, maxWidth: '100%' }} renderInput={(params: any) => ( )} + disableCloseOnSelect={isAdvancedPlayground!} /> ); } @@ -208,7 +209,10 @@ export const PlaygroundCodeFieldset: VFC = ({ setContextValue(event.target.value || '')} @@ -229,10 +233,9 @@ export const PlaygroundCodeFieldset: VFC = ({ return ( - 2 Unleash context diff --git a/frontend/src/component/playground/Playground/PlaygroundForm/PlaygroundCodeFieldset/PlaygroundEditor/PlaygroundEditor.tsx b/frontend/src/component/playground/Playground/PlaygroundForm/PlaygroundCodeFieldset/PlaygroundEditor/PlaygroundEditor.tsx index f5866ed22d..0130438201 100644 --- a/frontend/src/component/playground/Playground/PlaygroundForm/PlaygroundCodeFieldset/PlaygroundEditor/PlaygroundEditor.tsx +++ b/frontend/src/component/playground/Playground/PlaygroundForm/PlaygroundCodeFieldset/PlaygroundEditor/PlaygroundEditor.tsx @@ -114,7 +114,7 @@ export const PlaygroundEditor: VFC = ({ - 1 Access configuration @@ -121,13 +120,17 @@ export const PlaygroundConnectionFieldset: VFC< ( )} + renderOption={renderOption} + getOptionLabel={({ label }) => label} + disableCloseOnSelect={isAdvancedPlayground!} size="small" value={envValue} onChange={onEnvironmentsChange} @@ -136,12 +139,16 @@ export const PlaygroundConnectionFieldset: VFC< ( )} + renderOption={renderOption} + getOptionLabel={({ label }) => label} + disableCloseOnSelect size="small" value={ isAllProjects diff --git a/frontend/src/component/playground/Playground/PlaygroundForm/PlaygroundForm.tsx b/frontend/src/component/playground/Playground/PlaygroundForm/PlaygroundForm.tsx index bf045ee69c..0e7c9de9c2 100644 --- a/frontend/src/component/playground/Playground/PlaygroundForm/PlaygroundForm.tsx +++ b/frontend/src/component/playground/Playground/PlaygroundForm/PlaygroundForm.tsx @@ -1,5 +1,4 @@ import { Box, Button, Divider, useTheme } from '@mui/material'; -import { GuidanceIndicator } from 'component/common/GuidanceIndicator/GuidanceIndicator'; import { IEnvironment } from 'interfaces/environments'; import { FormEvent, VFC } from 'react'; import { PlaygroundCodeFieldset } from './PlaygroundCodeFieldset/PlaygroundCodeFieldset'; @@ -48,33 +47,17 @@ export const PlaygroundForm: VFC = ({ ({ name }) => name )} /> - + - - 3 -