Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: wrong menu position (#2238)

JimmFlyaaa4b4f0cb8f
diff --git a/apps/web/src/components/blocksuite/workspace-header/header-right-items/EditorOptionMenu.tsx b/apps/web/src/components/blocksuite/workspace-header/header-right-items/EditorOptionMenu.tsx
index 1e9d6f6f3f..ce362f2ef6 100644
--- a/apps/web/src/components/blocksuite/workspace-header/header-right-items/EditorOptionMenu.tsx
+++ b/apps/web/src/components/blocksuite/workspace-header/header-right-items/EditorOptionMenu.tsx
@@ -142,7 +142,7 @@ const PageMenu = () => {
<Menu
width={276}
content={EditMenu}
- placement="bottom"
+ placement="bottom-end"
disablePortal={true}
trigger="click"
>
diff --git a/packages/component/src/ui/shared/Container.tsx b/packages/component/src/ui/shared/Container.tsx
index 482b240ec2..3262474f8b 100644
--- a/packages/component/src/ui/shared/Container.tsx
+++ b/packages/component/src/ui/shared/Container.tsx
@@ -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',