Add a TruncatedList component, which truncates children passed to it.

This commit is contained in:
Kegan Dougal 2016-01-21 11:30:37 +00:00
parent 1c54c64850
commit 9f362e488c
3 changed files with 66 additions and 6 deletions

View file

@ -368,13 +368,14 @@ module.exports = React.createClass({
</div>
);
}
var TruncatedList = sdk.getComponent("elements.TruncatedList");
return (
<div className="mx_MemberList">
{this.inviteTile()}
<GeminiScrollbar autoshow={true} className="mx_MemberList_joined mx_MemberList_outerWrapper">
<div className="mx_MemberList_wrapper">
<TruncatedList className="mx_MemberList_wrapper">
{this.makeMemberTiles('join', this.state.searchQuery)}
</div>
</TruncatedList>
{invitedSection}
</GeminiScrollbar>
<div className="mx_MemberList_bottom">