diff options
author | anika-ahluwalia <anika.ahluwalia@gmail.com> | 2020-06-12 16:33:08 -0500 |
---|---|---|
committer | anika-ahluwalia <anika.ahluwalia@gmail.com> | 2020-06-12 16:33:08 -0500 |
commit | 35d6f64256500494d044846be65142694dfff4ac (patch) | |
tree | 6508e9428e13f45cd639cdf3c9e86609c1c582f9 /src/client/views/nodes/ScriptingBox.tsx | |
parent | ed6780f7a16e76165bbfc4dbcefe2d77ea40581c (diff) |
changes to UI and slight bux fixes
Diffstat (limited to 'src/client/views/nodes/ScriptingBox.tsx')
-rw-r--r-- | src/client/views/nodes/ScriptingBox.tsx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/client/views/nodes/ScriptingBox.tsx b/src/client/views/nodes/ScriptingBox.tsx index 60cd02678..0ae57ca52 100644 --- a/src/client/views/nodes/ScriptingBox.tsx +++ b/src/client/views/nodes/ScriptingBox.tsx @@ -359,7 +359,7 @@ export class ScriptingBox extends ViewBoxAnnotatableComponent<FieldViewProps, Sc // rendering when a string's value can be set in applied UI renderString(parameter: string) { - return <div className="scriptingBox-paramInputs"> + return <div className="scriptingBox-paramInputs" style={{ overflowY: "hidden" }}> <EditableView display={"block"} maxHeight={72} height={35} fontSize={14} contents={this.dataDoc[parameter] ?? "undefined"} GetValue={() => StrCast(this.dataDoc[parameter]) ?? "undefined"} @@ -694,12 +694,14 @@ export class ScriptingBox extends ViewBoxAnnotatableComponent<FieldViewProps, Sc // inputs for scripting div (script box, params box, and params column) @computed({ keepAlive: true }) get renderScriptingInputs() { + // should there be a border? style={{ borderStyle: "groove", borderBlockWidth: "1px" }} // params box on bottom const parameterInput = <div className="scriptingBox-params"> <EditableView display={"block"} maxHeight={72} height={35} fontSize={22} contents={""} GetValue={returnEmptyString} SetValue={value => value && value !== " " ? this.compileParam(value) : false} + placeholder={"enter parameters here"} /> </div>; @@ -744,11 +746,11 @@ export class ScriptingBox extends ViewBoxAnnotatableComponent<FieldViewProps, Sc renderParamsInputs() { return <div className="scriptingBox-inputDiv" onPointerDown={e => this.props.isSelected(true) && e.stopPropagation()} > {!this.compileParams.length || !this.paramsNames ? (null) : - <div className="scriptingBox-plist"> + <div className="scriptingBox-plist" style={{ overflowY: "scroll" }}> {this.paramsNames.map((parameter: string, i: number) => <div className="scriptingBox-pborder" onKeyPress={e => e.key === "Enter" && this._overlayDisposer?.()} > - <div className="scriptingBox-wrapper"> - <div className="scriptingBox-paramNames"> {`${parameter}:${this.paramsTypes[i]} = `} </div> + <div className="scriptingBox-wrapper" style={{ maxHeight: "40px" }}> + <div className="scriptingBox-paramNames" > {`${parameter}:${this.paramsTypes[i]} = `} </div> {this.paramsTypes[i] === "boolean" ? this.renderBoolean(parameter) : (null)} {this.paramsTypes[i] === "string" ? this.renderString(parameter) : (null)} {this.paramsTypes[i] === "number" ? this.renderNumber(parameter) : (null)} |