refactor(layout): 调整侧边栏宽度并优化开发者工具

- 调整侧边栏展开/折叠宽度,适应更多显示器
- 优化开发者工具,在新窗口中打开,解决部分显示器兼容性问题
- 添加浅色模式下侧边栏和菜单的背景色样式
This commit is contained in:
2025-08-03 01:58:57 +08:00
parent 8916cbd097
commit ffae1e583b
3 changed files with 17 additions and 5 deletions

View File

@@ -69,7 +69,8 @@ function createWindow() {
// 处理开发者工具请求
electron_1.ipcMain.handle('open-dev-tools', () => {
if (mainWindow) {
mainWindow.webContents.openDevTools();
// 在新窗口中打开开发者工具
mainWindow.webContents.openDevTools({ mode: 'undocked' });
}
});
electron_1.app.whenReady().then(createWindow);