summaryrefslogtreecommitdiffstats
path: root/webapp/components/textbox.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2017-04-04 15:15:11 -0400
committerJoram Wilander <jwawilander@gmail.com>2017-04-04 15:15:11 -0400
commit77a76487a8e15084c8b5e8e350eb8dc7a87455ea (patch)
treed733caef90d04c86de7f8c6acd7481bddfd68d0d /webapp/components/textbox.jsx
parent6bb65ef420fba17ec02e9b8005ca58bb60321cdc (diff)
downloadchat-77a76487a8e15084c8b5e8e350eb8dc7a87455ea.tar.gz
chat-77a76487a8e15084c8b5e8e350eb8dc7a87455ea.tar.bz2
chat-77a76487a8e15084c8b5e8e350eb8dc7a87455ea.zip
PLT-5985 Cleaned up CSS for post textbox (#5974)
Diffstat (limited to 'webapp/components/textbox.jsx')
-rw-r--r--webapp/components/textbox.jsx10
1 files changed, 9 insertions, 1 deletions
diff --git a/webapp/components/textbox.jsx b/webapp/components/textbox.jsx
index 21f784af5..f15848688 100644
--- a/webapp/components/textbox.jsx
+++ b/webapp/components/textbox.jsx
@@ -246,6 +246,14 @@ export default class Textbox extends React.Component {
</div>
);
+ let textboxClassName = 'form-control custom-textarea';
+ if (this.props.emojiEnabled) {
+ textboxClassName += ' custom-textarea--emoji-picker';
+ }
+ if (this.state.connection) {
+ textboxClassName += ' ' + this.state.connection;
+ }
+
return (
<div
ref='wrapper'
@@ -254,7 +262,7 @@ export default class Textbox extends React.Component {
<SuggestionBox
id={this.props.id}
ref='message'
- className={`form-control custom-textarea${this.props.emojiEnabled ? '-emoji' : ''} ${this.state.connection}`}
+ className={textboxClassName}
type='textarea'
spellCheck='true'
placeholder={this.props.createMessage}