You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
make rooms come in from left rather than the right
This commit is contained in:
@@ -60,9 +60,9 @@ export default class RoomBreadcrumbs extends React.Component {
|
||||
if (existingIdx !== -1) {
|
||||
rooms.splice(existingIdx, 1);
|
||||
}
|
||||
rooms.push(room);
|
||||
rooms.splice(0, 0, room);
|
||||
if (rooms.length > MAX_ROOMS) {
|
||||
rooms.splice(0, rooms.length - MAX_ROOMS);
|
||||
rooms.splice(MAX_ROOMS, rooms.length - MAX_ROOMS);
|
||||
}
|
||||
this.setState({rooms});
|
||||
}
|
||||
@@ -79,6 +79,6 @@ export default class RoomBreadcrumbs extends React.Component {
|
||||
</AccessibleButton>
|
||||
);
|
||||
});
|
||||
return (<div className="mx_RoomBreadcrumbs"><div>{ avatars }</div></div>);
|
||||
return (<div className="mx_RoomBreadcrumbs">{ avatars }</div>);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user