aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/EditableView.tsx
diff options
context:
space:
mode:
authoranika-ahluwalia <anika.ahluwalia@gmail.com>2020-07-04 17:25:10 -0500
committeranika-ahluwalia <anika.ahluwalia@gmail.com>2020-07-04 17:25:10 -0500
commit8264ac5484c0c7b5d47cb78ce60f5d6568e736d9 (patch)
tree9827e25bcbf94f184b15feb882ae8252b89235a4 /src/client/views/EditableView.tsx
parent641ddbeefbbc05f8bf586c542595af672826149b (diff)
redesigned editing menu, added link descriptions and popup on created
Diffstat (limited to 'src/client/views/EditableView.tsx')
-rw-r--r--src/client/views/EditableView.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/views/EditableView.tsx b/src/client/views/EditableView.tsx
index 628db366f..25a87ab56 100644
--- a/src/client/views/EditableView.tsx
+++ b/src/client/views/EditableView.tsx
@@ -194,7 +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>
);
}