mirror of https://github.com/vector-im/riot-web
Fix right-alignment between sticky and non-sticky room list headers
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
8ec7e7c714
commit
12034411d4
|
@ -139,7 +139,7 @@ export default class LeftPanel extends React.Component<IProps, IState> {
|
||||||
const bottomEdge = list.offsetHeight + list.scrollTop;
|
const bottomEdge = list.offsetHeight + list.scrollTop;
|
||||||
const sublists = list.querySelectorAll<HTMLDivElement>(".mx_RoomSublist");
|
const sublists = list.querySelectorAll<HTMLDivElement>(".mx_RoomSublist");
|
||||||
|
|
||||||
const headerRightMargin = 16; // calculated from margins and widths to align with non-sticky tiles
|
const headerRightMargin = 15; // calculated from margins and widths to align with non-sticky tiles
|
||||||
const headerStickyWidth = list.clientWidth - headerRightMargin;
|
const headerStickyWidth = list.clientWidth - headerRightMargin;
|
||||||
|
|
||||||
// We track which styles we want on a target before making the changes to avoid
|
// We track which styles we want on a target before making the changes to avoid
|
||||||
|
|
Loading…
Reference in New Issue