fix: floating toolbar ui (#6368)
This commit is contained in:
parent
2ddd7096e4
commit
ff8c5ee910
1 changed files with 3 additions and 6 deletions
|
|
@ -87,12 +87,9 @@ export const EditorBubbleMenu: FC<EditorBubbleMenuProps> = (props: any) => {
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<BubbleMenu
|
<BubbleMenu {...bubbleMenuProps}>
|
||||||
{...bubbleMenuProps}
|
|
||||||
className="flex py-2 divide-x divide-custom-border-200 rounded-lg border border-custom-border-200 bg-custom-background-100 shadow-custom-shadow-rg"
|
|
||||||
>
|
|
||||||
{!isSelecting && (
|
{!isSelecting && (
|
||||||
<>
|
<div className="flex py-2 divide-x divide-custom-border-200 rounded-lg border border-custom-border-200 bg-custom-background-100 shadow-custom-shadow-rg">
|
||||||
<div className="px-2">
|
<div className="px-2">
|
||||||
{!props.editor.isActive("table") && (
|
{!props.editor.isActive("table") && (
|
||||||
<BubbleMenuNodeSelector
|
<BubbleMenuNodeSelector
|
||||||
|
|
@ -161,7 +158,7 @@ export const EditorBubbleMenu: FC<EditorBubbleMenuProps> = (props: any) => {
|
||||||
editor.commands.setTextSelection(pos ?? 0);
|
editor.commands.setTextSelection(pos ?? 0);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</>
|
</div>
|
||||||
)}
|
)}
|
||||||
</BubbleMenu>
|
</BubbleMenu>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue