Update BlockContextMenu.tsx

This commit is contained in:
Nate Kelley 2025-08-01 22:21:48 -06:00
parent f00150c585
commit 63112231a7
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@ import {
ContextMenuTrigger
} from '@/components/ui/context-menu';
import { useIsTouchDevice } from '@/hooks/useIsTouchDevice';
import { DEFAULT_THEME_STYLE } from '../ThemeWrapper/themes';
type Value = 'askAI' | null;
@ -91,6 +92,7 @@ export function BlockContextMenu({ children }: { children: React.ReactNode }) {
</ContextMenuTrigger>
<ContextMenuContent
className="w-64"
style={DEFAULT_THEME_STYLE}
onCloseAutoFocus={(e) => {
e.preventDefault();
editor.getApi(BlockSelectionPlugin).blockSelection.focus();