feat: support mounted vault workspaces

This commit is contained in:
lucaronin
2026-05-11 16:37:06 +02:00
parent 5c05347690
commit 07edfac400
176 changed files with 8868 additions and 1535 deletions

View File

@@ -327,11 +327,13 @@ function createSideMenuAlignmentController(editor: TolariaBlockNoteEditor, block
}
function useSideMenuTextAlignment(editor: TolariaBlockNoteEditor, block: SideMenuBlock | undefined) {
useLayoutEffect(() => {
if (!block) return
const blockId = block?.id
return createSideMenuAlignmentController(editor, block.id)
}, [block?.id, editor])
useLayoutEffect(() => {
if (!blockId) return
return createSideMenuAlignmentController(editor, blockId)
}, [blockId, editor])
}
function styleDragPreview(preview: HTMLElement, rect: DOMRect) {