There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix: hide blockHub in edgeless mode (#1447)
x1a0tce37b5a8c365
diff --git a/apps/web/src/components/blocksuite/block-suite-editor/index.tsx b/apps/web/src/components/blocksuite/block-suite-editor/index.tsxindex b826eaa82a..9e442e67b0 100644--- a/apps/web/src/components/blocksuite/block-suite-editor/index.tsx+++ b/apps/web/src/components/blocksuite/block-suite-editor/index.tsx@@ -101,7 +101,10 @@ export const BlockSuiteEditor = (props: EditorProps) => {if (!editor || !container || !page) {return;}- if (page.awarenessStore.getFlag('enable_block_hub')) {+ if (+ page.awarenessStore.getFlag('enable_block_hub') &&+ props.mode === 'page'+ ) {editor.createBlockHub().then(blockHub => {if (blockHubRef.current) {blockHubRef.current.remove();@@ -118,7 +121,7 @@ export const BlockSuiteEditor = (props: EditorProps) => {blockHubRef.current?.remove();container.removeChild(editor);};- }, [page]);+ }, [page, props.mode]);return (<divdata-testid={`editor-${props.blockSuiteWorkspace.id}-${props.page.id}`}