add appropriate CSS for the TabCompleteBar

This commit is contained in:
Matthew Hodgson 2015-12-22 00:47:04 +00:00
parent c8aaee46d7
commit 618978d955
2 changed files with 16 additions and 5 deletions

View file

@ -28,15 +28,17 @@ module.exports = React.createClass({
render: function() {
return (
<div>
<div className="mx_TabCompleteBar">
{this.props.entries.map(function(entry, i) {
var image = (
entry.imgUrl ? <img src={entry.imgUrl} /> : null
entry.imgUrl ? <img src={entry.imgUrl} width="24" height="24"/> : null
);
return (
<div key={i + ""}>
<div key={i + ""} className="mx_TabCompleteBar_item">
{image}
{entry.text}
<span className="mx_TabCompleteBar_text">
{entry.text}
</span>
</div>
);
})}