You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-18 09:22:18 +03:00
Float the badges with the sticky headers
This commit is contained in:
@ -102,7 +102,7 @@ export default class LeftPanel2 extends React.Component<IProps, IState> {
|
||||
for (const sublist of sublists) {
|
||||
const slRect = sublist.getBoundingClientRect();
|
||||
|
||||
const header = sublist.querySelector<HTMLDivElement>(".mx_RoomSublist2_headerText");
|
||||
const header = sublist.querySelector<HTMLDivElement>(".mx_RoomSublist2_stickable");
|
||||
|
||||
if (slRect.top + headerHeight > bottom && !gotBottom) {
|
||||
console.log(`${header.textContent} is off the bottom`);
|
||||
|
Reference in New Issue
Block a user