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
Clear top
when not sticking headers to the top
Fixes https://github.com/vector-im/riot-web/issues/14070
This commit is contained in:
@ -108,6 +108,7 @@ export default class LeftPanel2 extends React.Component<IProps, IState> {
|
|||||||
header.classList.add("mx_RoomSublist2_headerContainer_sticky");
|
header.classList.add("mx_RoomSublist2_headerContainer_sticky");
|
||||||
header.classList.add("mx_RoomSublist2_headerContainer_stickyBottom");
|
header.classList.add("mx_RoomSublist2_headerContainer_stickyBottom");
|
||||||
header.style.width = `${headerStickyWidth}px`;
|
header.style.width = `${headerStickyWidth}px`;
|
||||||
|
header.style.top = "unset";
|
||||||
gotBottom = true;
|
gotBottom = true;
|
||||||
} else if (slRect.top < top) {
|
} else if (slRect.top < top) {
|
||||||
header.classList.add("mx_RoomSublist2_headerContainer_sticky");
|
header.classList.add("mx_RoomSublist2_headerContainer_sticky");
|
||||||
@ -119,6 +120,7 @@ export default class LeftPanel2 extends React.Component<IProps, IState> {
|
|||||||
header.classList.remove("mx_RoomSublist2_headerContainer_stickyTop");
|
header.classList.remove("mx_RoomSublist2_headerContainer_stickyTop");
|
||||||
header.classList.remove("mx_RoomSublist2_headerContainer_stickyBottom");
|
header.classList.remove("mx_RoomSublist2_headerContainer_stickyBottom");
|
||||||
header.style.width = `unset`;
|
header.style.width = `unset`;
|
||||||
|
header.style.top = "unset";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user