mirror of https://github.com/vector-im/riot-web
add appropriate CSS for the TabCompleteBar
parent
c8aaee46d7
commit
618978d955
|
@ -1292,7 +1292,16 @@ module.exports = React.createClass({
|
|||
else if (this.tabComplete.isTabCompleting()) {
|
||||
var TabCompleteBar = sdk.getComponent('rooms.TabCompleteBar');
|
||||
statusBar = (
|
||||
<TabCompleteBar entries={this.tabComplete.peek(3)} />
|
||||
<div className="mx_RoomView_tabCompleteBar">
|
||||
<div className="mx_RoomView_tabCompleteImage">...</div>
|
||||
<div className="mx_RoomView_tabCompleteWrapper">
|
||||
<TabCompleteBar entries={this.tabComplete.peek(6)} />
|
||||
<div className="mx_RoomView_tabCompleteEol">
|
||||
<img src="img/eol.svg" width="22" height="16" alt="->|"/>
|
||||
Auto-complete
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
else if (this.state.hasUnsentMessages) {
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
})}
|
||||
|
|
Loading…
Reference in New Issue