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: commneu menu style

DiamondThreed622164fe0d1
diff --git a/libs/components/editor-plugins/src/menu/command-menu/Menu.tsx b/libs/components/editor-plugins/src/menu/command-menu/Menu.tsx
index 2194059724..3ce81e6ebb 100644
--- a/libs/components/editor-plugins/src/menu/command-menu/Menu.tsx
+++ b/libs/components/editor-plugins/src/menu/command-menu/Menu.tsx
@@ -239,21 +239,23 @@ export const CommandMenu = ({ editor, hooks, style }: CommandMenuProps) => {
ref={commandMenuContentRef}
>
<MuiClickAwayListener onClickAway={handle_click_away}>
- <CommandMenuContainer
- editor={editor}
- hooks={hooks}
- style={{
- ...commandMenuPosition,
- ...style,
- }}
- isShow={show}
- blockId={blockId}
- onSelected={handle_selected}
- onclose={handle_close}
- searchBlocks={search_blocks}
- types={types}
- categories={categories}
- />
+ <div>
+ <CommandMenuContainer
+ editor={editor}
+ hooks={hooks}
+ style={{
+ ...commandMenuPosition,
+ ...style,
+ }}
+ isShow={show}
+ blockId={blockId}
+ onSelected={handle_selected}
+ onclose={handle_close}
+ searchBlocks={search_blocks}
+ types={types}
+ categories={categories}
+ />
+ </div>
</MuiClickAwayListener>
</div>
);