diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2020-07-11 19:52:33 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2020-07-11 19:52:33 -0400 |
| commit | 97456cca47bfe37d8c0b78770d0db88b75289d56 (patch) | |
| tree | 1d4cf06649538c1283b8875e2e317ef5c36c0df3 /src/client/views/EditableView.tsx | |
| parent | 6b5c11a26e114f26f3907342f9afbd47b27cecf4 (diff) | |
| parent | bf8c338e662327b39cdef3f90c436447e48d2807 (diff) | |
merged with master & cleaned up formatShapePane
Diffstat (limited to 'src/client/views/EditableView.tsx')
| -rw-r--r-- | src/client/views/EditableView.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client/views/EditableView.tsx b/src/client/views/EditableView.tsx index bab3a1634..25a87ab56 100644 --- a/src/client/views/EditableView.tsx +++ b/src/client/views/EditableView.tsx @@ -194,8 +194,11 @@ export class EditableView extends React.Component<EditableProps> { ref={this._ref} style={{ display: this.props.display, minHeight: "20px", height: `${this.props.height ? this.props.height : "auto"}`, maxHeight: `${this.props.maxHeight}` }} onClick={this.onClick} placeholder={this.props.placeholder}> - - <span style={{ fontStyle: this.props.fontStyle, fontSize: this.props.fontSize, color: this.props.contents ? "black" : "grey" }}>{this.props.contents ? this.props.contents?.valueOf() : this.props.placeholder?.valueOf()}</span> + <span style={{ + fontStyle: this.props.fontStyle, fontSize: this.props.fontSize, + color: this.props.contents ? this.props.color ? this.props.color : "black" : "grey" + }}> + {this.props.contents ? this.props.contents?.valueOf() : this.props.placeholder?.valueOf()}</span> </div> ); } |
