fudge room member tiles to look slightly better

This commit is contained in:
Matthew Hodgson 2015-07-07 04:05:44 +01:00
parent 205ed54ec7
commit ecd197df86

View File

@ -20,6 +20,9 @@ var React = require('react');
var MRoomMemberTileController = require("../../../../src/controllers/molecules/MRoomMemberTile"); var MRoomMemberTileController = require("../../../../src/controllers/molecules/MRoomMemberTile");
var ComponentBroker = require('../../../../src/ComponentBroker');
var MessageTimestamp = ComponentBroker.get('atoms/MessageTimestamp');
module.exports = React.createClass({ module.exports = React.createClass({
displayName: 'MRoomMemberTile', displayName: 'MRoomMemberTile',
mixins: [MRoomMemberTileController], mixins: [MRoomMemberTileController],
@ -37,10 +40,15 @@ module.exports = React.createClass({
}, },
render: function() { render: function() {
// XXX: for now, just cheekily borrow the css from message tile...
return ( return (
<span className="mx_MemberTile"> <div className="mx_MessageTile">
<MessageTimestamp ts={this.props.mxEvent.getTs()} />
<span className="mx_SenderProfile"></span>
<span className="mx_messageTileType">
{this.getMemberEventText()} {this.getMemberEventText()}
</span> </span>
</div>
); );
}, },
}); });