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(mobile): disable AI chat block peek on mobile (#8929)
doodlewind6ac8cca4403e
diff --git a/packages/frontend/core/src/blocksuite/presets/blocks/ai-chat-block/ai-chat-block.ts b/packages/frontend/core/src/blocksuite/presets/blocks/ai-chat-block/ai-chat-block.tsindex 0570bb7c31..64a333f5c6 100644--- a/packages/frontend/core/src/blocksuite/presets/blocks/ai-chat-block/ai-chat-block.ts+++ b/packages/frontend/core/src/blocksuite/presets/blocks/ai-chat-block/ai-chat-block.ts@@ -11,7 +11,10 @@ import { ChatWithAIIcon } from '../_common/icon';import { AIChatBlockStyles } from './styles';@Peekable({- enableOn: ({ doc }: AIChatBlockComponent) => !doc.readonly,+ enableOn: ({ doc }: AIChatBlockComponent) => {+ // Disable on mobile and readonly mode+ return !BUILD_CONFIG.isMobileEdition && !doc.readonly;+ },})export class AIChatBlockComponent extends BlockComponent<AIChatBlockModel> {static override styles = AIChatBlockStyles;