mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-15 09:21:02 +02:00
Expand status *area* unless status *bar* not visible (#655)
This commit is contained in:
parent
853d94e2d4
commit
f462bd8f99
@ -1509,13 +1509,14 @@ module.exports = React.createClass({
|
|||||||
});
|
});
|
||||||
|
|
||||||
var statusBar;
|
var statusBar;
|
||||||
|
let isStatusAreaExpanded = true;
|
||||||
|
|
||||||
if (ContentMessages.getCurrentUploads().length > 0) {
|
if (ContentMessages.getCurrentUploads().length > 0) {
|
||||||
var UploadBar = sdk.getComponent('structures.UploadBar');
|
var UploadBar = sdk.getComponent('structures.UploadBar');
|
||||||
statusBar = <UploadBar room={this.state.room} />;
|
statusBar = <UploadBar room={this.state.room} />;
|
||||||
} else if (!this.state.searchResults) {
|
} else if (!this.state.searchResults) {
|
||||||
var RoomStatusBar = sdk.getComponent('structures.RoomStatusBar');
|
var RoomStatusBar = sdk.getComponent('structures.RoomStatusBar');
|
||||||
|
isStatusAreaExpanded = this.state.statusBarVisible;
|
||||||
statusBar = <RoomStatusBar
|
statusBar = <RoomStatusBar
|
||||||
room={this.state.room}
|
room={this.state.room}
|
||||||
tabComplete={this.tabComplete}
|
tabComplete={this.tabComplete}
|
||||||
@ -1685,7 +1686,7 @@ module.exports = React.createClass({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
let statusBarAreaClass = "mx_RoomView_statusArea mx_fadable";
|
let statusBarAreaClass = "mx_RoomView_statusArea mx_fadable";
|
||||||
if (this.state.statusBarVisible) {
|
if (isStatusAreaExpanded) {
|
||||||
statusBarAreaClass += " mx_RoomView_statusArea_expanded";
|
statusBarAreaClass += " mx_RoomView_statusArea_expanded";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user