Merge pull request #6134 from vector-im/luke/fix-tag-panel-collapse

Fix TagPanel from collapsing to < 60px when LP collapsed
pull/6140/head
Matthew Hodgson 2018-02-13 22:02:58 +00:00 committed by GitHub
commit 7aea7f9400
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 3 deletions

View File

@ -238,9 +238,14 @@ var LeftPanel = React.createClass({
}
);
const containerClasses = classNames(
"mx_LeftPanel_container",
{ "mx_LeftPanel_container_collapsed": this.props.collapsed },
);
return (
<DragDropContext onDragEnd={this.onDragEnd}>
<div className="mx_LeftPanel_container">
<div className={containerClasses}>
{ SettingsStore.isFeatureEnabled("feature_tag_panel") ? <TagPanel /> : <div /> }
<aside className={classes} onKeyDown={ this._onKeyDown } onFocus={ this._onFocus } onBlur={ this._onBlur }>
{ topBox }

View File

@ -15,7 +15,7 @@ limitations under the License.
*/
.mx_TagPanel {
width: 60px;
flex: 0 0 60px;
background-color: $tertiary-accent-color;
cursor: pointer;

View File

@ -23,7 +23,12 @@ limitations under the License.
.mx_LeftPanel_container {
display: flex;
flex: 0 0 235px;
flex: 0 0 295px;
}
.mx_LeftPanel_container_collapsed {
/* TagPanel 60px + Collapsed LeftPanel 60px */
flex: 0 0 120px;
}
.mx_LeftPanel_hideButton {