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';
|
import { AIChatBlockStyles } from './styles';
|
||||||
|
|
||||||
@Peekable({
|
@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> {
|
export class AIChatBlockComponent extends BlockComponent<AIChatBlockModel> {
|
||||||
static override styles = AIChatBlockStyles;
|
static override styles = AIChatBlockStyles;
|
||||||
|
|||||||
Reference in New Issue
Block a user