mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
Merge remote-tracking branch 'origin/develop' into element
This commit is contained in:
commit
a54b18adfe
1 changed files with 14 additions and 10 deletions
|
@ -187,10 +187,23 @@ export default class LeftPanel2 extends React.Component<IProps, IState> {
|
||||||
if (header.style.top !== newTop) {
|
if (header.style.top !== newTop) {
|
||||||
header.style.top = newTop;
|
header.style.top = newTop;
|
||||||
}
|
}
|
||||||
} else if (style.stickyBottom) {
|
} else {
|
||||||
|
if (header.classList.contains("mx_RoomSublist2_headerContainer_stickyTop")) {
|
||||||
|
header.classList.remove("mx_RoomSublist2_headerContainer_stickyTop");
|
||||||
|
}
|
||||||
|
if (header.style.top) {
|
||||||
|
header.style.removeProperty('top');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (style.stickyBottom) {
|
||||||
if (!header.classList.contains("mx_RoomSublist2_headerContainer_stickyBottom")) {
|
if (!header.classList.contains("mx_RoomSublist2_headerContainer_stickyBottom")) {
|
||||||
header.classList.add("mx_RoomSublist2_headerContainer_stickyBottom");
|
header.classList.add("mx_RoomSublist2_headerContainer_stickyBottom");
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if (header.classList.contains("mx_RoomSublist2_headerContainer_stickyBottom")) {
|
||||||
|
header.classList.remove("mx_RoomSublist2_headerContainer_stickyBottom");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (style.stickyTop || style.stickyBottom) {
|
if (style.stickyTop || style.stickyBottom) {
|
||||||
|
@ -209,21 +222,12 @@ export default class LeftPanel2 extends React.Component<IProps, IState> {
|
||||||
if (header.classList.contains("mx_RoomSublist2_headerContainer_sticky")) {
|
if (header.classList.contains("mx_RoomSublist2_headerContainer_sticky")) {
|
||||||
header.classList.remove("mx_RoomSublist2_headerContainer_sticky");
|
header.classList.remove("mx_RoomSublist2_headerContainer_sticky");
|
||||||
}
|
}
|
||||||
if (header.classList.contains("mx_RoomSublist2_headerContainer_stickyTop")) {
|
|
||||||
header.classList.remove("mx_RoomSublist2_headerContainer_stickyTop");
|
|
||||||
}
|
|
||||||
if (header.classList.contains("mx_RoomSublist2_headerContainer_stickyBottom")) {
|
|
||||||
header.classList.remove("mx_RoomSublist2_headerContainer_stickyBottom");
|
|
||||||
}
|
|
||||||
if (headerContainer.classList.contains("mx_RoomSublist2_headerContainer_hasSticky")) {
|
if (headerContainer.classList.contains("mx_RoomSublist2_headerContainer_hasSticky")) {
|
||||||
headerContainer.classList.remove("mx_RoomSublist2_headerContainer_hasSticky");
|
headerContainer.classList.remove("mx_RoomSublist2_headerContainer_hasSticky");
|
||||||
}
|
}
|
||||||
if (header.style.width) {
|
if (header.style.width) {
|
||||||
header.style.removeProperty('width');
|
header.style.removeProperty('width');
|
||||||
}
|
}
|
||||||
if (header.style.top) {
|
|
||||||
header.style.removeProperty('top');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue