界面改进和代码重构:设置窗口最小尺寸并抽象预设供应商配置
- 设置窗口最小尺寸为600x400,防止界面缩放问题 - 将预设供应商配置提取到独立文件providerPresets.ts - 便于管理和维护预设供应商列表 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user