Merge pull request #4825 from matrix-org/travis/room-list/default-lists

Allow the user to resize the new sublists to 1 tile
This commit is contained in:
Travis Ralston 2020-06-25 07:18:26 -06:00 committed by GitHub
commit 4d47dcaabd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View file

@ -117,7 +117,7 @@ export default class RoomSublist2 extends React.Component<IProps, IState> {
};
private onShowLessClick = () => {
this.props.layout.visibleTiles = this.props.layout.minVisibleTiles;
this.props.layout.visibleTiles = this.props.layout.defaultVisibleTiles;
this.forceUpdate(); // because the layout doesn't trigger a re-render
};