fix: commneu menu style

This commit is contained in:
DiamondThree
2022-07-28 14:58:52 +08:00
parent e65fb518d0
commit d622164fe0
@@ -239,21 +239,23 @@ export const CommandMenu = ({ editor, hooks, style }: CommandMenuProps) => {
ref={commandMenuContentRef} ref={commandMenuContentRef}
> >
<MuiClickAwayListener onClickAway={handle_click_away}> <MuiClickAwayListener onClickAway={handle_click_away}>
<CommandMenuContainer <div>
editor={editor} <CommandMenuContainer
hooks={hooks} editor={editor}
style={{ hooks={hooks}
...commandMenuPosition, style={{
...style, ...commandMenuPosition,
}} ...style,
isShow={show} }}
blockId={blockId} isShow={show}
onSelected={handle_selected} blockId={blockId}
onclose={handle_close} onSelected={handle_selected}
searchBlocks={search_blocks} onclose={handle_close}
types={types} searchBlocks={search_blocks}
categories={categories} types={types}
/> categories={categories}
/>
</div>
</MuiClickAwayListener> </MuiClickAwayListener>
</div> </div>
); );