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.ts index 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 { static override styles = AIChatBlockStyles;