- {inputParam && inputParam.type === 'string' && (
+ {inputParam && (inputParam.type === 'string' || inputParam.type === 'code') && (
{inputParam.label}
@@ -54,42 +96,66 @@ const ExpandTextDialog = ({ show, dialogProps, onCancel, onConfirm }) => {
borderColor: theme.palette.grey['500'],
borderRadius: '12px',
height: '100%',
- maxHeight: 'calc(100vh - 220px)',
+ maxHeight: languageType === 'js' ? 'calc(100vh - 250px)' : 'calc(100vh - 220px)',
overflowX: 'hidden',
backgroundColor: 'white'
}}
>
- {customization.isDarkMode ? (
- setInputValue(code)}
- placeholder={inputParam.placeholder}
- type={languageType}
- style={{
- fontSize: '0.875rem',
- minHeight: 'calc(100vh - 220px)',
- width: '100%'
- }}
- />
- ) : (
- setInputValue(code)}
- placeholder={inputParam.placeholder}
- type={languageType}
- style={{
- fontSize: '0.875rem',
- minHeight: 'calc(100vh - 220px)',
- width: '100%'
- }}
- />
- )}
+ setInputValue(code)}
+ />
)}
+ {languageType === 'js' && (
+