mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-21 05:01:34 +03:00
fix(mobile): disable AI chat block peek on mobile (#8929)
This commit is contained in:
parent
75516c7584
commit
6ac8cca440
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user