mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 06:16:59 +08:00
fix(mobile): disable AI chat block peek on mobile (#8929)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user