fix: 🐛 Start app to adapt to dark mode

This commit is contained in:
viarotel 2024-11-26 14:18:58 +08:00
parent 0e5710d539
commit ae13fdea07
3 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -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"

View File

@ -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>