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): windows app controls missing (#6832)

EYHNe00c697694fc
diff --git a/packages/frontend/core/src/modules/workbench/view/route-container.tsx b/packages/frontend/core/src/modules/workbench/view/route-container.tsx
index d93cb82dd9..31f6562f8b 100644
--- a/packages/frontend/core/src/modules/workbench/view/route-container.tsx
+++ b/packages/frontend/core/src/modules/workbench/view/route-container.tsx
@@ -70,11 +70,12 @@ export const RouteContainer = ({ route }: Props) => {
onToggle={handleToggleRightSidebar}
/>
)}
- {isWindowsDesktop && !rightSidebarOpen && (
- <div className={styles.windowsAppControlsContainer}>
- <WindowsAppControls />
- </div>
- )}
+ {isWindowsDesktop &&
+ !(rightSidebarOpen && rightSidebarHasViews) && (
+ <div className={styles.windowsAppControlsContainer}>
+ <WindowsAppControls />
+ </div>
+ )}
</>
)}
</div>