chore: adjust main window size and fix titlebar overlay
Frontend CI / Frontend (push) Successful in 3m5s
Backend CI / Backend (push) Successful in 15m12s

- Increase default main window size from 1320x860 to 1420x960
- Use transparent titlebar overlay for all window modes
- Remove hardcoded CONFIG_PATH from dev-ops-api make target

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Xu Liang
2026-05-02 19:26:10 +08:00
parent 6dd3bd8e9d
commit 22d0cd63a1
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -142,7 +142,7 @@ const WINDOW_READY_TIMEOUT_MS = 1200
const WINDOW_SIZES: Record<WindowMode, WindowSizePreset> = {
login: { width: 340, height: 540, minWidth: 340, minHeight: 540, resizable: false },
main: { width: 1320, height: 860, minWidth: 900, minHeight: 600, resizable: true },
main: { width: 1420, height: 960, minWidth: 900, minHeight: 600, resizable: true },
}
const SETTINGS_WINDOW_SIZE: WindowSizePreset = {
@@ -567,7 +567,7 @@ async function createAppWindow(mode: WindowMode): Promise<ElectronBrowserWindow>
title: '省心推',
icon: createDesktopHealthIcon('normal'),
titleBarStyle: appTitleBarStyle(),
titleBarOverlay: appTitleBarOverlay(mode === 'login' ? '#00000000' : backgroundColor),
titleBarOverlay: appTitleBarOverlay('#00000000'),
trafficLightPosition: { x: 12, y: 14 },
resizable: initial.resizable,
minimizable: mode !== 'login',
+1 -1
View File
@@ -26,7 +26,7 @@ dev-scheduler: ## Run scheduler workers
go run ./cmd/scheduler
dev-ops-api: ## Run ops-api server (internal operations console backend)
CONFIG_PATH=configs/ops-config.yaml go run ./cmd/ops-api
go run ./cmd/ops-api
migrate-up: ## Run all pending migrations
$(MIGRATE_CMD) -path migrations -database "$(DB_URL)" up