mirror of
https://github.com/element-hq/element-web
synced 2024-11-22 17:25:50 +03:00
align context menus even better
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
b5014282a4
commit
3b7b6eca6f
1 changed files with 2 additions and 1 deletions
|
@ -69,7 +69,8 @@ interface IState {
|
||||||
}
|
}
|
||||||
|
|
||||||
const contextMenuBelow = (elementRect) => {
|
const contextMenuBelow = (elementRect) => {
|
||||||
const left = elementRect.left + window.pageXOffset - 6;
|
// align the context menu's icons with the icon which opened the context menu
|
||||||
|
const left = elementRect.left + window.pageXOffset - 9;
|
||||||
let top = elementRect.bottom + window.pageYOffset + 17;
|
let top = elementRect.bottom + window.pageYOffset + 17;
|
||||||
const chevronFace = "none";
|
const chevronFace = "none";
|
||||||
return {left, top, chevronFace};
|
return {left, top, chevronFace};
|
||||||
|
|
Loading…
Reference in a new issue