mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 04:50:36 +03:00
Fix input height
This commit is contained in:
parent
616ceebcb3
commit
27f515f5d3
|
@ -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)}
|
||||
|
|
|
@ -227,6 +227,7 @@ function EditorRSExpression({
|
|||
/>
|
||||
<RSInput innerref={rsInput}
|
||||
className='mt-2'
|
||||
height='10.1rem'
|
||||
value={value}
|
||||
placeholder={placeholder}
|
||||
editable={!disabled}
|
||||
|
|
Loading…
Reference in New Issue
Block a user