layout for file & notif panel

This commit is contained in:
Matthew Hodgson 2016-09-11 02:14:27 +01:00
parent bae6409edb
commit 34bb37aaba
9 changed files with 186 additions and 44 deletions

View file

@ -103,6 +103,7 @@ var FilePanel = React.createClass({
manageReadMarkers={false}
timelineSet={this.state.timelineSet}
showUrlPreview = { false }
tileShape="file_grid"
opacity={ this.props.opacity }
/>
);

View file

@ -79,6 +79,9 @@ module.exports = React.createClass({
// className for the panel
className: React.PropTypes.string.isRequired,
// shape parameter to be passed to EventTiles
tileShape: React.PropTypes.string,
},
componentWillMount: function() {
@ -392,6 +395,7 @@ module.exports = React.createClass({
showUrlPreview={this.props.showUrlPreview}
checkUnmounting={this._isUnmounting}
eventSendStatus={mxEv.status}
tileShape={this.props.tileShape}
last={last} isSelectedEvent={highlight}/>
</li>
);

View file

@ -47,6 +47,7 @@ var NotificationPanel = React.createClass({
timelineSet={timelineSet}
showUrlPreview = { false }
opacity={ this.props.opacity }
tileShape="notif"
/>
);
}

View file

@ -93,6 +93,9 @@ var TimelinePanel = React.createClass({
// classname to use for the messagepanel
className: React.PropTypes.string,
// shape property to be passed to EventTiles
tileShape: React.PropTypes.string,
},
statics: {
@ -979,6 +982,7 @@ var TimelinePanel = React.createClass({
onFillRequest={ this.onMessageListFillRequest }
opacity={ this.props.opacity }
className={ this.props.className }
tileShape={ this.props.tileShape }
/>
);
},