diff options
author | madelinegr <laura_wilson@brown.edu> | 2019-02-25 19:17:23 -0500 |
---|---|---|
committer | madelinegr <laura_wilson@brown.edu> | 2019-02-25 19:17:23 -0500 |
commit | 646f5db87cf116533915814a790cb77565ceb515 (patch) | |
tree | 10712637cd3d3423fa66b427604839bc5d8bcd0d /src/client/views/EditableView.tsx | |
parent | 292ff1a8d75f8b15f9388d2c577e09a13836d5dc (diff) |
added in editableview stuff and minor css styling
Diffstat (limited to 'src/client/views/EditableView.tsx')
-rw-r--r-- | src/client/views/EditableView.tsx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/client/views/EditableView.tsx b/src/client/views/EditableView.tsx index 8d9a47eaa..88ef67afa 100644 --- a/src/client/views/EditableView.tsx +++ b/src/client/views/EditableView.tsx @@ -27,12 +27,11 @@ export class EditableView extends React.Component<EditableProps> { render() { if (this.editing) { return <input defaultValue={this.props.GetValue()} onKeyDown={this.onKeyDown} autoFocus onBlur={action(() => this.editing = false)} - style={{ width: "100%" }}></input> + style={{ display: "inline" }}></input> } else { return ( - <div className="editableView-container-editing" style={{ display: "flex", height: "100%", maxHeight: `${this.props.height}` }} - onClick={action(() => this.editing = true)} - > + <div className="editableView-container-editing" style={{ display: "inline", height: "100%", maxHeight: `${this.props.height}` }} + onClick={action(() => this.editing = true)}> {this.props.contents} </div> ) |