implement right panel collapsing more correctly too

This commit is contained in:
Matthew Hodgson 2015-10-11 02:25:26 +01:00
parent 47ed8971e3
commit 8bdb5c0745
2 changed files with 12 additions and 2 deletions

View file

@ -64,8 +64,13 @@ module.exports = React.createClass({
}
}
var classes = "mx_RightPanel";
if (this.state.phase === this.Phase.None) {
classes += " collapsed";
}
return (
<aside className="mx_RightPanel">
<aside className={classes}>
<div className="mx_RightPanel_header">
{ buttonGroup }
</div>