From f62d30527bfea72cae47c32f0bd9a534a05a7b9c Mon Sep 17 00:00:00 2001 From: pengx17 Date: Thu, 8 Aug 2024 03:58:11 +0000 Subject: [PATCH] fix: onboarding stage not shown (#7782) fix AF-1199 --- .../frontend/electron/renderer/shell/index.css | 16 ---------------- .../frontend/electron/renderer/shell/index.tsx | 1 - tools/cli/src/webpack/config.ts | 3 ++- 3 files changed, 2 insertions(+), 18 deletions(-) delete mode 100644 packages/frontend/electron/renderer/shell/index.css 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, }),