Skip to content

Commit

Permalink
fix: 🐛 Start app to adapt to dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
viarotel committed Nov 26, 2024
1 parent 0e5710d commit ae13fde
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,14 @@ pnpm build:linux # Build for Linux

### Specific area "throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')"

Overwrite the contents of `.npmrc.CN` in the project to `.npmrc`, then delete `node_modules` and reinstall dependencies. Alternatively, you can use [electron-fix](https://github.com/pangxieju/electron-fix)
Overwrite the contents of `.npmrc.CN` in the project to `.npmrc`, then delete `node_modules` and reinstall dependencies.

Alternatively, you can use [electron-fix](https://github.com/pangxieju/electron-fix)

```shell
# Run in this project directory
npx electron-fix start
```

## Support and Contact

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"build:win": "vite build && electron-builder --win",
"build:mac": "vite build && electron-builder --mac",
"build:linux": "vite build && electron-builder --linux",
"electron-fix": "npx electron-fix start",
"svgo": "svgo --folder=src/icons/svgo --output=src/icons/svg --config=src/icons/svgo.config.js",
"postinstall": "electron-builder install-app-deps",
"prepare": "husky install"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<template #dropdown>
<el-dropdown-menu>
<div class="sticky top-0 px-2 pt-2 pb-2 bg-white border-b">
<div class="sticky top-0 z-10 px-2 pt-2 pb-2 bg-[var(--el-bg-color-overlay)] border-b dark:border-gray-700">
<el-input v-model="keyword" class="!w-full" :placeholder="$t('common.search')" prefix-icon="Search"></el-input>
</div>

Expand Down

0 comments on commit ae13fde

Please sign in to comment.