fix: wrong menu position (#2238)

This commit is contained in:
JimmFly
2023-05-07 07:58:41 +08:00
committed by GitHub
parent 10cd000822
commit aaa4b4f0cb
2 changed files with 2 additions and 2 deletions
@@ -142,7 +142,7 @@ const PageMenu = () => {
<Menu <Menu
width={276} width={276}
content={EditMenu} content={EditMenu}
placement="bottom" placement="bottom-end"
disablePortal={true} disablePortal={true}
trigger="click" trigger="click"
> >
@@ -32,7 +32,7 @@ export const placementToContainerDirection: Record<
'right-end': 'left-bottom', 'right-end': 'left-bottom',
bottom: 'none', bottom: 'none',
'bottom-start': 'left-top', 'bottom-start': 'left-top',
'bottom-end': 'right-top', 'bottom-end': 'none',
left: 'none', left: 'none',
'left-start': 'right-top', 'left-start': 'right-top',
'left-end': 'right-bottom', 'left-end': 'right-bottom',