Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

chore: not allowed to open pdf files on mobile (#9041)

fundonefa4a8001925
diff --git a/packages/frontend/core/src/modules/peek-view/view/peek-view-controls.tsx b/packages/frontend/core/src/modules/peek-view/view/peek-view-controls.tsx
index 9e1c7025ca..6cfbc3f5a0 100644
--- a/packages/frontend/core/src/modules/peek-view/view/peek-view-controls.tsx
+++ b/packages/frontend/core/src/modules/peek-view/view/peek-view-controls.tsx
@@ -169,7 +169,8 @@ export const AttachmentPeekViewControls = ({
name: t['com.affine.peek-view-controls.close'](),
onClick: () => peekView.close(),
},
- {
+ // TODO(@fundon): needs to be implemented on mobile
+ BUILD_CONFIG.isDesktopEdition && {
icon: <ExpandFullIcon />,
name: t['com.affine.peek-view-controls.open-attachment'](),
nameKey: 'open',