mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
fudge room member tiles to look slightly better
This commit is contained in:
parent
205ed54ec7
commit
ecd197df86
@ -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>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user