Fix input height

This commit is contained in:
IRBorisov 2023-08-13 01:10:46 +03:00
parent 616ceebcb3
commit 27f515f5d3
2 changed files with 2 additions and 3 deletions

View File

@ -52,7 +52,6 @@ extends Omit<ReactCodeMirrorProps, 'onChange'> {
function RSInput({
innerref, onChange, editable,
height='10rem',
...props
}: RSInputProps) {
const { darkMode } = useConceptTheme();
@ -99,12 +98,11 @@ function RSInput({
}), [editable]);
return (
<div className={`w-full h-[${height}] ${cursor} text-lg`}>
<div className={`w-full ${cursor} text-lg`}>
<CodeMirror
ref={innerref}
basicSetup={editorSetup}
extensions={editorExtensions}
height={height}
indentWithTab={false}
theme={darkMode ? darkTheme : lightTheme}
onChange={value => onChange(value)}

View File

@ -227,6 +227,7 @@ function EditorRSExpression({
/>
<RSInput innerref={rsInput}
className='mt-2'
height='10.1rem'
value={value}
placeholder={placeholder}
editable={!disabled}