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
chore(mobile): disable reference popup on mobile (#8743)
L-Suna8938ab4037c
diff --git a/packages/frontend/core/src/components/blocksuite/block-suite-editor/specs/custom/spec-patchers.tsx b/packages/frontend/core/src/components/blocksuite/block-suite-editor/specs/custom/spec-patchers.tsxindex 3c317e72a4..580184947f 100644--- a/packages/frontend/core/src/components/blocksuite/block-suite-editor/specs/custom/spec-patchers.tsx+++ b/packages/frontend/core/src/components/blocksuite/block-suite-editor/specs/custom/spec-patchers.tsx@@ -40,6 +40,7 @@ import type {PeekOptions,PeekViewService as BSPeekViewService,QuickSearchResult,+ ReferenceNodeConfig,RootBlockConfig,RootService,} from '@blocksuite/affine/blocks';@@ -57,6 +58,7 @@ import {PeekViewExtension,QuickSearchExtension,ReferenceNodeConfigExtension,+ ReferenceNodeConfigIdentifier,} from '@blocksuite/affine/blocks';import { type BlockSnapshot, Text } from '@blocksuite/affine/store';import {@@ -567,6 +569,17 @@ export function patchForMobile() {});}+ // Hide reference popup on mobile.+ {+ const prev = di.getFactory(ReferenceNodeConfigIdentifier);+ di.override(ReferenceNodeConfigIdentifier, provider => {+ return {+ ...prev?.(provider),+ hidePopup: true,+ } satisfies ReferenceNodeConfig;+ });+ }+// Disable some toolbar widgets for mobile.{di.override(WidgetViewMapIdentifier('affine:page'), () => {