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) => {
};
return (
<Spin spinning={loading}>
<>
<Spin spinning={loading} delay={600}></Spin>
<DiffModal diffs={diff} open={isModalOpen} fileName={currentData?.name} onUse={upDateTask} />
<Editor
width={'100%'}
height={'84vh'}
height={'100%'}
value={currentTab?.params?.taskData?.statement}
language={'sql'}
options={{
......@@ -124,7 +125,7 @@ const CodeEditor: React.FC<EditorProps & any> = (props) => {
}}
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