fix: prevent bubble menu from being cut off at the top of notes
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 34s

This commit is contained in:
2026-05-02 23:37:13 +02:00
parent e4ca7ba497
commit 01cf5ccad7

View File

@@ -177,6 +177,11 @@ export const RichTextEditor = forwardRef<RichTextEditorHandle, RichTextEditorPro
<BubbleMenu
editor={editor}
className="notion-bubble-menu"
tippyOptions={{
appendTo: () => document.body,
zIndex: 99999,
fallbackPlacements: ['bottom', 'top']
}}
shouldShow={({ editor: e, state }: { editor: Editor; state: EditorState }) => {
const { from, to } = state.selection
const isImage = e.isActive('image')