Merge pull request #4848 from Georift/room-list/fix-show-less-visibility

Hide room list show less button if it would do nothing
This commit is contained in:
Travis Ralston
2020-06-27 22:22:51 -06:00
committed by GitHub

View File

@@ -393,7 +393,7 @@ export default class RoomSublist2 extends React.Component<IProps, IState> {
{showMoreText}
</div>
);
} else if (tiles.length <= nVisible && tiles.length > this.props.layout.minVisibleTiles) {
} else if (tiles.length <= nVisible && tiles.length > this.props.layout.defaultVisibleTiles) {
// we have all tiles visible - add a button to show less
let showLessText = (
<span className='mx_RoomSublist2_showNButtonText'>