forked from matrix/element-web
Merge pull request #6340 from vector-im/luke/fix-TagPanel-enabled-when-settings-open
Ensure entire LeftPanel is faded when settings open
This commit is contained in:
commit
31cc29ad51
|
@ -186,12 +186,11 @@ var LeftPanel = React.createClass({
|
||||||
topBox = <SearchBox collapsed={ this.props.collapsed } onSearch={ this.onSearch } />;
|
topBox = <SearchBox collapsed={ this.props.collapsed } onSearch={ this.onSearch } />;
|
||||||
}
|
}
|
||||||
|
|
||||||
let classes = classNames(
|
const classes = classNames(
|
||||||
"mx_LeftPanel", "mx_fadable",
|
"mx_LeftPanel",
|
||||||
{
|
{
|
||||||
"collapsed": this.props.collapsed,
|
"collapsed": this.props.collapsed,
|
||||||
"mx_fadable_faded": this.props.disabled,
|
},
|
||||||
}
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const tagPanelEnabled =
|
const tagPanelEnabled =
|
||||||
|
@ -200,10 +199,11 @@ var LeftPanel = React.createClass({
|
||||||
const tagPanel = tagPanelEnabled ? <TagPanel /> : <div />;
|
const tagPanel = tagPanelEnabled ? <TagPanel /> : <div />;
|
||||||
|
|
||||||
const containerClasses = classNames(
|
const containerClasses = classNames(
|
||||||
"mx_LeftPanel_container",
|
"mx_LeftPanel_container", "mx_fadable",
|
||||||
{
|
{
|
||||||
"mx_LeftPanel_container_collapsed": this.props.collapsed,
|
"mx_LeftPanel_container_collapsed": this.props.collapsed,
|
||||||
"mx_LeftPanel_container_hasTagPanel": tagPanelEnabled,
|
"mx_LeftPanel_container_hasTagPanel": tagPanelEnabled,
|
||||||
|
"mx_fadable_faded": this.props.disabled,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue