界面改进和代码重构:设置窗口最小尺寸并抽象预设供应商配置

- 设置窗口最小尺寸为600x400,防止界面缩放问题
- 将预设供应商配置提取到独立文件providerPresets.ts
- 便于管理和维护预设供应商列表

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
farion1231
2025-08-08 12:12:28 +08:00
parent 6021ad8b22
commit fe71373e7d
3 changed files with 56 additions and 32 deletions

View File

@@ -20,6 +20,8 @@ function createWindow() {
mainWindow = new BrowserWindow({
width: 800,
height: 600,
minWidth: 600,
minHeight: 400,
webPreferences: {
preload: path.join(__dirname, "../main/preload.js"),
contextIsolation: true,