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.

fix(core): hidden open in split view in browser (#7811)

EYHN3ad5170b71ca
diff --git a/packages/frontend/core/src/components/blocksuite/block-suite-header/menu/index.tsx b/packages/frontend/core/src/components/blocksuite/block-suite-header/menu/index.tsx
index cc345a313f..e70d772ad7 100644
--- a/packages/frontend/core/src/components/blocksuite/block-suite-header/menu/index.tsx
+++ b/packages/frontend/core/src/components/blocksuite/block-suite-header/menu/index.tsx
@@ -308,18 +308,20 @@ export const PageHeaderMenuButton = ({
{t['com.affine.workbench.tab.page-menu-open']()}
</MenuItem>
- <MenuItem
- preFix={
- <MenuIcon>
- <SplitViewIcon />
- </MenuIcon>
- }
- data-testid="editor-option-menu-open-in-split-new"
- onSelect={handleOpenInSplitView}
- style={menuItemStyle}
- >
- {t['com.affine.workbench.split-view.page-menu-open']()}
- </MenuItem>
+ {environment.isDesktop && (
+ <MenuItem
+ preFix={
+ <MenuIcon>
+ <SplitViewIcon />
+ </MenuIcon>
+ }
+ data-testid="editor-option-menu-open-in-split-new"
+ onSelect={handleOpenInSplitView}
+ style={menuItemStyle}
+ >
+ {t['com.affine.workbench.split-view.page-menu-open']()}
+ </MenuItem>
+ )}
<MenuSeparator />