Skip to content

Commit b9ce10b

Browse files
authored
Merge pull request matrix-org#4848 from Georift/room-list/fix-show-less-visibility
Hide room list show less button if it would do nothing
2 parents 5172c7b + c838102 commit b9ce10b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/views/rooms/RoomSublist2.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ export default class RoomSublist2 extends React.Component<IProps, IState> {
393393
{showMoreText}
394394
</div>
395395
);
396-
} else if (tiles.length <= nVisible && tiles.length > this.props.layout.minVisibleTiles) {
396+
} else if (tiles.length <= nVisible && tiles.length > this.props.layout.defaultVisibleTiles) {
397397
// we have all tiles visible - add a button to show less
398398
let showLessText = (
399399
<span className='mx_RoomSublist2_showNButtonText'>

0 commit comments

Comments
 (0)