Merge pull request #3426 from matrix-org/dbkr/lp-visualfixes_2

Left panel: visual fixes
This commit is contained in:
David Baker 2019-09-12 12:21:29 +01:00 committed by GitHub
commit bbea1635a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -132,11 +132,12 @@ limitations under the License.
.mx_SearchBox {
flex: 1 1 0;
min-width: 0;
margin: 4px 9px 1px 9px;
}
}
.mx_LeftPanel_explore {
flex: 0 0 40%;
flex: 0 0 50%;
overflow: hidden;
transition: flex-basis 0.2s;
box-sizing: border-box;
@ -147,8 +148,7 @@ limitations under the License.
.mx_AccessibleButton {
font-size: 14px;
margin: 9px;
margin-right: 0;
margin: 4px 0 1px 9px;
padding: 9px;
padding-left: 42px;
font-weight: 600;

View File

@ -125,7 +125,7 @@ module.exports = React.createClass({
if (this.props.collapsed) {
return null;
}
const clearButton = this.state.searchTerm.length > 0 ?
const clearButton = !this.state.blurred ?
(<AccessibleButton key="button"
className="mx_SearchBox_closeButton"
onClick={ () => {this._clearSearch("button"); } }>