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): app ghosting issue when quickly opening new tabs (#7736)

pengx175050418c1ad8
diff --git a/packages/frontend/electron/renderer/global.css b/packages/frontend/electron/renderer/global.css
index bf27b863f4..30fff067cb 100644
--- a/packages/frontend/electron/renderer/global.css
+++ b/packages/frontend/electron/renderer/global.css
@@ -10,6 +10,10 @@ textarea
-webkit-app-region: no-drag;
}
+html {
+ opacity: 0;
+}
+
html:is([data-active='false'], [data-dragging='true']) * {
-webkit-app-region: no-drag !important;
}
diff --git a/packages/frontend/electron/renderer/shell/index.tsx b/packages/frontend/electron/renderer/shell/index.tsx
index 9730d9909b..c4a26a453f 100644
--- a/packages/frontend/electron/renderer/shell/index.tsx
+++ b/packages/frontend/electron/renderer/shell/index.tsx
@@ -2,7 +2,6 @@ import 'setimmediate';
import '@affine/component/theme/global.css';
import '@affine/component/theme/theme.css';
import '@affine/core/bootstrap/preload';
-import '../global.css';
import { ThemeProvider } from '@affine/component/theme-provider';
import { configureAppTabsHeaderModule } from '@affine/core/modules/app-tabs-header';