apply FilePanel css and fix filtering
This commit is contained in:
parent
c2f2fb3816
commit
e7074ef9af
4 changed files with 13 additions and 3 deletions
|
@ -55,6 +55,7 @@ var FilePanel = React.createClass({
|
||||||
|
|
||||||
client.getOrCreateFilter("FILTER_FILES_" + client.credentials.userId, filter).then(
|
client.getOrCreateFilter("FILTER_FILES_" + client.credentials.userId, filter).then(
|
||||||
(filterId)=>{
|
(filterId)=>{
|
||||||
|
filter.filterId = filterId;
|
||||||
var timelineSet = this.state.room.getOrCreateFilteredTimelineSet(filter);
|
var timelineSet = this.state.room.getOrCreateFilteredTimelineSet(filter);
|
||||||
this.setState({ timelineSet: timelineSet });
|
this.setState({ timelineSet: timelineSet });
|
||||||
},
|
},
|
||||||
|
@ -93,6 +94,7 @@ var FilePanel = React.createClass({
|
||||||
if (this.state.timelineSet) {
|
if (this.state.timelineSet) {
|
||||||
return (
|
return (
|
||||||
<TimelinePanel ref={this._gatherTimelinePanelRef}
|
<TimelinePanel ref={this._gatherTimelinePanelRef}
|
||||||
|
className="mx_FilePanel"
|
||||||
manageReadReceipts={false}
|
manageReadReceipts={false}
|
||||||
manageReadMarkers={false}
|
manageReadMarkers={false}
|
||||||
timelineSet={this.state.timelineSet}
|
timelineSet={this.state.timelineSet}
|
||||||
|
|
|
@ -73,6 +73,9 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
// opacity for dynamic UI fading effects
|
// opacity for dynamic UI fading effects
|
||||||
opacity: React.PropTypes.number,
|
opacity: React.PropTypes.number,
|
||||||
|
|
||||||
|
// className for the panel
|
||||||
|
className: React.PropTypes.string.isRequired,
|
||||||
},
|
},
|
||||||
|
|
||||||
componentWillMount: function() {
|
componentWillMount: function() {
|
||||||
|
@ -503,7 +506,7 @@ module.exports = React.createClass({
|
||||||
style.opacity = this.props.opacity;
|
style.opacity = this.props.opacity;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ScrollPanel ref="scrollPanel" className="mx_RoomView_messagePanel mx_fadable"
|
<ScrollPanel ref="scrollPanel" className={ this.props.className + " mx_fadable" }
|
||||||
onScroll={ this.props.onScroll }
|
onScroll={ this.props.onScroll }
|
||||||
onResize={ this.onResize }
|
onResize={ this.onResize }
|
||||||
onFillRequest={ this.props.onFillRequest }
|
onFillRequest={ this.props.onFillRequest }
|
||||||
|
|
|
@ -1581,6 +1581,7 @@ module.exports = React.createClass({
|
||||||
onReadMarkerUpdated={ this._updateTopUnreadMessagesBar }
|
onReadMarkerUpdated={ this._updateTopUnreadMessagesBar }
|
||||||
showUrlPreview = { this.state.showUrlPreview }
|
showUrlPreview = { this.state.showUrlPreview }
|
||||||
opacity={ this.props.opacity }
|
opacity={ this.props.opacity }
|
||||||
|
className="mx_RoomView_messagePanel"
|
||||||
/>);
|
/>);
|
||||||
|
|
||||||
var topUnreadMessagesBar = null;
|
var topUnreadMessagesBar = null;
|
||||||
|
|
|
@ -90,6 +90,9 @@ var TimelinePanel = React.createClass({
|
||||||
|
|
||||||
// maximum number of events to show in a timeline
|
// maximum number of events to show in a timeline
|
||||||
timelineCap: React.PropTypes.number,
|
timelineCap: React.PropTypes.number,
|
||||||
|
|
||||||
|
// classname to use for the messagepanel
|
||||||
|
className: React.PropTypes.string.isRequired,
|
||||||
},
|
},
|
||||||
|
|
||||||
statics: {
|
statics: {
|
||||||
|
@ -827,7 +830,7 @@ var TimelinePanel = React.createClass({
|
||||||
|
|
||||||
// if we're at the end of the live timeline, append the pending events
|
// if we're at the end of the live timeline, append the pending events
|
||||||
if (!this._timelineWindow.canPaginate(EventTimeline.FORWARDS)) {
|
if (!this._timelineWindow.canPaginate(EventTimeline.FORWARDS)) {
|
||||||
events.push(... this.props.timelineSet.room.getPendingEvents());
|
events.push(... this.props.timelineSet.getPendingEvents());
|
||||||
}
|
}
|
||||||
|
|
||||||
return events;
|
return events;
|
||||||
|
@ -941,7 +944,7 @@ var TimelinePanel = React.createClass({
|
||||||
// exist.
|
// exist.
|
||||||
if (this.state.timelineLoading) {
|
if (this.state.timelineLoading) {
|
||||||
return (
|
return (
|
||||||
<div className="mx_RoomView_messagePanel mx_RoomView_messageListWrapper">
|
<div className={ this.props.className + " mx_RoomView_messageListWrapper" }>
|
||||||
<Loader />
|
<Loader />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -973,6 +976,7 @@ var TimelinePanel = React.createClass({
|
||||||
onScroll={ this.onMessageListScroll }
|
onScroll={ this.onMessageListScroll }
|
||||||
onFillRequest={ this.onMessageListFillRequest }
|
onFillRequest={ this.onMessageListFillRequest }
|
||||||
opacity={ this.props.opacity }
|
opacity={ this.props.opacity }
|
||||||
|
className={ this.props.className }
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue