Unverified Commit a36ae43c authored by gaoyan's avatar gaoyan Committed by GitHub

[Bug][web] datastudio editor height bug (#2428)

* Optimize the process * fix code editer bug
parent 4a4859af
...@@ -70,11 +70,12 @@ const CodeEditor: React.FC<EditorProps & any> = (props) => { ...@@ -70,11 +70,12 @@ const CodeEditor: React.FC<EditorProps & any> = (props) => {
}; };
return ( return (
<Spin spinning={loading}> <>
<Spin spinning={loading} delay={600}></Spin>
<DiffModal diffs={diff} open={isModalOpen} fileName={currentData?.name} onUse={upDateTask} /> <DiffModal diffs={diff} open={isModalOpen} fileName={currentData?.name} onUse={upDateTask} />
<Editor <Editor
width={'100%'} width={'100%'}
height={'84vh'} height={'100%'}
value={currentTab?.params?.taskData?.statement} value={currentTab?.params?.taskData?.statement}
language={'sql'} language={'sql'}
options={{ options={{
...@@ -124,7 +125,7 @@ const CodeEditor: React.FC<EditorProps & any> = (props) => { ...@@ -124,7 +125,7 @@ const CodeEditor: React.FC<EditorProps & any> = (props) => {
}} }}
theme={'vs-dark'} theme={'vs-dark'}
/> />
</Spin> </>
); );
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment