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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user