summaryrefslogtreecommitdiffstats
path: root/web/react/components/command_list.jsx
diff options
context:
space:
mode:
authorAsaad Mahmood <Unknowngi@live.com>2015-08-27 20:46:25 +0500
committerAsaad Mahmood <Unknowngi@live.com>2015-08-27 20:46:25 +0500
commit1e647cbdfc159d6d3905c5af0ece6ce4255ea80a (patch)
tree59560f9504bce2f5e57665ea0e96084ffc865529 /web/react/components/command_list.jsx
parentd3093028cff337ede3747c6f0908eda432c3cb88 (diff)
downloadchat-1e647cbdfc159d6d3905c5af0ece6ce4255ea80a.tar.gz
chat-1e647cbdfc159d6d3905c5af0ece6ce4255ea80a.tar.bz2
chat-1e647cbdfc159d6d3905c5af0ece6ce4255ea80a.zip
MM-1899 - Updating UI for commands in input box
Diffstat (limited to 'web/react/components/command_list.jsx')
-rw-r--r--web/react/components/command_list.jsx8
1 files changed, 5 insertions, 3 deletions
diff --git a/web/react/components/command_list.jsx b/web/react/components/command_list.jsx
index 5efe98dc6..8f8f9d08d 100644
--- a/web/react/components/command_list.jsx
+++ b/web/react/components/command_list.jsx
@@ -44,19 +44,21 @@ module.exports = React.createClass({
var suggestions = [];
+ console.log(this.state.suggestions.length);
+
for (var i = 0; i < this.state.suggestions.length; i++) {
if (this.state.suggestions[i].suggestion != this.state.cmd) {
suggestions.push(
<div key={i} className="command-name" onClick={this.handleClick.bind(this, i)}>
- <div className="pull-left"><strong>{ this.state.suggestions[i].suggestion }</strong></div>
- <div className="command-desc pull-right">{ this.state.suggestions[i].description }</div>
+ <div className="command__title"><strong>{ this.state.suggestions[i].suggestion }</strong></div>
+ <div className="command__desc">{ this.state.suggestions[i].description }</div>
</div>
);
}
}
return (
- <div ref="mentionlist" className="command-box" style={{height:(this.state.suggestions.length*37)+2}}>
+ <div ref="mentionlist" className="command-box" style={{height:(this.state.suggestions.length*56)+2}}>
{ suggestions }
</div>
);