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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ const PageMenu = () => {
<Menu
width={276}
content={EditMenu}
placement="bottom"
placement="bottom-end"
disablePortal={true}
trigger="click"
>

View File

@ -32,7 +32,7 @@ export const placementToContainerDirection: Record<
'right-end': 'left-bottom',
bottom: 'none',
'bottom-start': 'left-top',
'bottom-end': 'right-top',
'bottom-end': 'none',
left: 'none',
'left-start': 'right-top',
'left-end': 'right-bottom',