Merge up from develop
This commit is contained in:
commit
cf22a5fecc
8 changed files with 22 additions and 21 deletions
|
@ -45,7 +45,7 @@
|
||||||
"react": "^15.2.1",
|
"react": "^15.2.1",
|
||||||
"react-addons-css-transition-group": "^15.2.1",
|
"react-addons-css-transition-group": "^15.2.1",
|
||||||
"react-dom": "^15.2.1",
|
"react-dom": "^15.2.1",
|
||||||
"react-gemini-scrollbar": "matrix-org/react-gemini-scrollbar#dbf0abf",
|
"react-gemini-scrollbar": "matrix-org/react-gemini-scrollbar#5e97aef",
|
||||||
"sanitize-html": "^1.11.1",
|
"sanitize-html": "^1.11.1",
|
||||||
"velocity-vector": "vector-im/velocity#059e3b2",
|
"velocity-vector": "vector-im/velocity#059e3b2",
|
||||||
"whatwg-fetch": "^1.0.0"
|
"whatwg-fetch": "^1.0.0"
|
||||||
|
|
|
@ -540,7 +540,6 @@ module.exports = React.createClass({
|
||||||
// it's not obvious why we have a separate div and ol anyway.
|
// it's not obvious why we have a separate div and ol anyway.
|
||||||
return (<GeminiScrollbar autoshow={true} ref="geminiPanel"
|
return (<GeminiScrollbar autoshow={true} ref="geminiPanel"
|
||||||
onScroll={this.onScroll} onResize={this.onResize}
|
onScroll={this.onScroll} onResize={this.onResize}
|
||||||
relayoutOnUpdate={false}
|
|
||||||
className={this.props.className} style={this.props.style}>
|
className={this.props.className} style={this.props.style}>
|
||||||
<div className="mx_RoomView_messageListWrapper">
|
<div className="mx_RoomView_messageListWrapper">
|
||||||
<ol ref="itemlist" className="mx_RoomView_MessageList" aria-live="polite">
|
<ol ref="itemlist" className="mx_RoomView_MessageList" aria-live="polite">
|
||||||
|
|
|
@ -463,7 +463,6 @@ module.exports = React.createClass({
|
||||||
<SimpleRoomHeader title="Settings" onCancelClick={ this.props.onClose }/>
|
<SimpleRoomHeader title="Settings" onCancelClick={ this.props.onClose }/>
|
||||||
|
|
||||||
<GeminiScrollbar className="mx_UserSettings_body"
|
<GeminiScrollbar className="mx_UserSettings_body"
|
||||||
relayoutOnUpdate={false}
|
|
||||||
autoshow={true}>
|
autoshow={true}>
|
||||||
|
|
||||||
<h3>Profile</h3>
|
<h3>Profile</h3>
|
||||||
|
|
|
@ -133,32 +133,36 @@ module.exports = React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
var name = this.props.name;
|
|
||||||
|
|
||||||
var imageUrl = this.state.imageUrls[this.state.urlsIndex];
|
var imageUrl = this.state.imageUrls[this.state.urlsIndex];
|
||||||
|
|
||||||
|
const {
|
||||||
|
name, idName, title, url, urls, width, height, resizeMethod,
|
||||||
|
defaultToInitialLetter,
|
||||||
|
...otherProps
|
||||||
|
} = this.props;
|
||||||
|
|
||||||
if (imageUrl === this.state.defaultImageUrl) {
|
if (imageUrl === this.state.defaultImageUrl) {
|
||||||
var initialLetter = emojifyText(this._getInitialLetter(this.props.name));
|
var initialLetter = emojifyText(this._getInitialLetter(name));
|
||||||
return (
|
return (
|
||||||
<span className="mx_BaseAvatar" {...this.props}>
|
<span className="mx_BaseAvatar" {...otherProps}>
|
||||||
<span className="mx_BaseAvatar_initial" aria-hidden="true"
|
<span className="mx_BaseAvatar_initial" aria-hidden="true"
|
||||||
style={{ fontSize: (this.props.width * 0.65) + "px",
|
style={{ fontSize: (width * 0.65) + "px",
|
||||||
width: this.props.width + "px",
|
width: width + "px",
|
||||||
lineHeight: this.props.height + "px" }}
|
lineHeight: height + "px" }}
|
||||||
dangerouslySetInnerHTML={initialLetter}>
|
dangerouslySetInnerHTML={initialLetter}>
|
||||||
</span>
|
</span>
|
||||||
<img className="mx_BaseAvatar_image" src={imageUrl}
|
<img className="mx_BaseAvatar_image" src={imageUrl}
|
||||||
alt="" title={this.props.title} onError={this.onError}
|
alt="" title={title} onError={this.onError}
|
||||||
width={this.props.width} height={this.props.height} />
|
width={width} height={height} />
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<img className="mx_BaseAvatar mx_BaseAvatar_image" src={imageUrl}
|
<img className="mx_BaseAvatar mx_BaseAvatar_image" src={imageUrl}
|
||||||
onError={this.onError}
|
onError={this.onError}
|
||||||
width={this.props.width} height={this.props.height}
|
width={width} height={height}
|
||||||
title={this.props.title} alt=""
|
title={title} alt=""
|
||||||
{...this.props} />
|
{...otherProps} />
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -126,11 +126,13 @@ module.exports = React.createClass({
|
||||||
render: function() {
|
render: function() {
|
||||||
var BaseAvatar = sdk.getComponent("avatars.BaseAvatar");
|
var BaseAvatar = sdk.getComponent("avatars.BaseAvatar");
|
||||||
|
|
||||||
var roomName = this.props.room ? this.props.room.name : this.props.oobData.name;
|
var {room, oobData, ...otherProps} = this.props;
|
||||||
|
|
||||||
|
var roomName = room ? room.name : oobData.name;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<BaseAvatar {...this.props} name={roomName}
|
<BaseAvatar {...otherProps} name={roomName}
|
||||||
idName={this.props.room ? this.props.room.roomId : null}
|
idName={room ? room.roomId : null}
|
||||||
urls={this.state.urls} />
|
urls={this.state.urls} />
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -521,7 +521,6 @@ module.exports = React.createClass({
|
||||||
<div className="mx_MemberList">
|
<div className="mx_MemberList">
|
||||||
{inviteMemberListSection}
|
{inviteMemberListSection}
|
||||||
<GeminiScrollbar autoshow={true}
|
<GeminiScrollbar autoshow={true}
|
||||||
relayoutOnUpdate={false}
|
|
||||||
className="mx_MemberList_joined mx_MemberList_outerWrapper">
|
className="mx_MemberList_joined mx_MemberList_outerWrapper">
|
||||||
<TruncatedList className="mx_MemberList_wrapper" truncateAt={this.state.truncateAt}
|
<TruncatedList className="mx_MemberList_wrapper" truncateAt={this.state.truncateAt}
|
||||||
createOverflowElement={this._createOverflowTile}>
|
createOverflowElement={this._createOverflowTile}>
|
||||||
|
|
|
@ -325,7 +325,6 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<GeminiScrollbar className="mx_RoomList_scrollbar"
|
<GeminiScrollbar className="mx_RoomList_scrollbar"
|
||||||
relayoutOnUpdate={false}
|
|
||||||
autoshow={true} onScroll={ self._repositionTooltips } ref="gemscroll">
|
autoshow={true} onScroll={ self._repositionTooltips } ref="gemscroll">
|
||||||
<div className="mx_RoomList">
|
<div className="mx_RoomList">
|
||||||
<RoomSubList list={ self.state.lists['im.vector.fake.invite'] }
|
<RoomSubList list={ self.state.lists['im.vector.fake.invite'] }
|
||||||
|
|
|
@ -179,7 +179,6 @@ var SearchableEntityList = React.createClass({
|
||||||
}
|
}
|
||||||
list = (
|
list = (
|
||||||
<GeminiScrollbar autoshow={true}
|
<GeminiScrollbar autoshow={true}
|
||||||
relayoutOnUpdate={false}
|
|
||||||
className="mx_SearchableEntityList_listWrapper">
|
className="mx_SearchableEntityList_listWrapper">
|
||||||
{ list }
|
{ list }
|
||||||
</GeminiScrollbar>
|
</GeminiScrollbar>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue