From 22d0cd63a1fd2ee031f9d428139e745df21e7679 Mon Sep 17 00:00:00 2001 From: Xu Liang Date: Sat, 2 May 2026 19:26:10 +0800 Subject: [PATCH] chore: adjust main window size and fix titlebar overlay - 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 --- apps/desktop-client/src/main/bootstrap.ts | 4 ++-- server/Makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/desktop-client/src/main/bootstrap.ts b/apps/desktop-client/src/main/bootstrap.ts index e59a0ab..be7ff41 100644 --- a/apps/desktop-client/src/main/bootstrap.ts +++ b/apps/desktop-client/src/main/bootstrap.ts @@ -142,7 +142,7 @@ const WINDOW_READY_TIMEOUT_MS = 1200 const WINDOW_SIZES: Record = { 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 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', diff --git a/server/Makefile b/server/Makefile index b993cbc..787fb87 100644 --- a/server/Makefile +++ b/server/Makefile @@ -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