Skip to content

Commit

Permalink
fix(mobile): disable AI chat block peek on mobile (#8929)
Browse files Browse the repository at this point in the history
  • Loading branch information
doodlewind committed Nov 26, 2024
1 parent 75516c7 commit 6ac8cca
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6ac8cca

Please sign in to comment.