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(electron): electron fallback container should not contain tabs header (#10826)

pengx17d24ced3dbdbe
diff --git a/packages/frontend/core/src/desktop/components/app-container/index.tsx b/packages/frontend/core/src/desktop/components/app-container/index.tsx
index 8160793dde..fff4cd126f 100644
--- a/packages/frontend/core/src/desktop/components/app-container/index.tsx
+++ b/packages/frontend/core/src/desktop/components/app-container/index.tsx
@@ -64,16 +64,18 @@ const DesktopLayout = ({
const isInWorkspace = !!workspaceService;
return (
<div className={styles.desktopAppViewContainer}>
- <div className={styles.desktopTabsHeader}>
- <AppTabsHeader
- left={
- <>
- {isInWorkspace && <SidebarSwitch show />}
- {isInWorkspace && <NavigationButtons />}
- </>
- }
- />
- </div>
+ {!fallback ? (
+ <div className={styles.desktopTabsHeader}>
+ <AppTabsHeader
+ left={
+ <>
+ {isInWorkspace && <SidebarSwitch show />}
+ {isInWorkspace && <NavigationButtons />}
+ </>
+ }
+ />
+ </div>
+ ) : null}
<div className={styles.desktopAppViewMain}>
{fallback ? (
<AppSidebarFallback />