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: onboarding stage not shown (#7782)

pengx17f62d30527bfe
diff --git a/packages/frontend/electron/renderer/shell/index.css b/packages/frontend/electron/renderer/shell/index.css
deleted file mode 100644
index b0c0754d63..0000000000
--- a/packages/frontend/electron/renderer/shell/index.css
+++ /dev/null
@@ -1,16 +0,0 @@
-html,
-html[data-active='false'] {
- opacity: 0;
-}
-
-html[data-active='false'] {
- transition: opacity 0.01s 0.2s;
-}
-
-html[data-active='false'] * {
- -webkit-app-region: no-drag !important;
-}
-
-html[data-active='true'] {
- opacity: 1;
-}
diff --git a/packages/frontend/electron/renderer/shell/index.tsx b/packages/frontend/electron/renderer/shell/index.tsx
index 9a3cdcce8c..6ac344540d 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 './index.css';
import { ThemeProvider } from '@affine/component/theme-provider';
import { configureAppTabsHeaderModule } from '@affine/core/modules/app-tabs-header';
diff --git a/tools/cli/src/webpack/config.ts b/tools/cli/src/webpack/config.ts
index 4ebdb40419..92229b8dc0 100644
--- a/tools/cli/src/webpack/config.ts
+++ b/tools/cli/src/webpack/config.ts
@@ -329,7 +329,8 @@ export const createConfiguration: (
IN_CI ? null : new webpack.ProgressPlugin({ percentBy: 'entries' }),
buildFlags.mode === 'development'
? new ReactRefreshWebpackPlugin({ overlay: false, esModule: true })
- : new MiniCssExtractPlugin({
+ : // todo: support multiple entry points
+ new MiniCssExtractPlugin({
filename: `[name].[contenthash:8].css`,
ignoreOrder: true,
}),