bigger spark editor

This commit is contained in:
Bobby
2021-06-21 11:23:12 +10:00
parent 237312688e
commit 3a9c84f2ae
2 changed files with 7 additions and 5 deletions

View File

@@ -107,7 +107,7 @@ export default function SparksEditor({ requestSnackLog }) {
</>
}
children={
<>
<div style={{ height: "calc(100vh - 250px)" }}>
<Alert severity="warning">
This is an alpha feature. Cloud Functions and Google Cloud
integration setup is required, but the process is not yet
@@ -140,7 +140,7 @@ export default function SparksEditor({ requestSnackLog }) {
press shift and control key to enable force save.
</Alert>
)}
</>
</div>
}
actions={{
primary: showForceSave

View File

@@ -6,7 +6,11 @@ import { FieldType } from "constants/fields";
const useStyles = makeStyles((theme) =>
createStyles({
editorWrapper: { position: "relative", minWidth: 800 },
editorWrapper: {
position: "relative",
minWidth: 800,
height: "calc(100% - 200px)",
},
resizeIcon: {
position: "absolute",
bottom: 0,
@@ -25,7 +29,6 @@ export default function CodeEditor(props: any) {
handleChange,
extraLibs,
script,
height = 400,
onValideStatusUpdate,
diagnosticsOptions,
} = props;
@@ -403,7 +406,6 @@ export default function CodeEditor(props: any) {
<div className={classes.editorWrapper}>
<Editor
theme={themeTransformer(theme.palette.type)}
height={height}
onMount={handleEditorDidMount}
language="javascript"
value={initialEditorValue}