termdock 1.4.286 → 1.4.287

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1191,14 +1191,16 @@ function createDesktopWindow(options) {
1191
1191
  : null;
1192
1192
  if (serviceSession)
1193
1193
  installCertificateVerifyProcedure(serviceSession, options?.serviceOrigin);
1194
+ // macOS clips the old fixed width on smaller displays but leaves the fixed
1195
+ // height untouched. Size workspace windows to the active display's usable
1196
+ // area before loading, including restored windows shown without focus.
1197
+ const workspaceBounds = options && process.platform === 'darwin'
1198
+ ? screen.getDisplayNearestPoint(screen.getCursorScreenPoint()).workArea
1199
+ : { width: options ? 1500 : 1280, height: 820 };
1194
1200
  const window = new BrowserWindow({
1195
1201
  title: options ? `Termdock — ${options.label}` : 'Termdock — 连接中心',
1196
1202
  show: false,
1197
- // The web workspace enables its persistent right inspector at 1440px.
1198
- // Open service windows above that breakpoint so the visible pin action
1199
- // cannot write a pinned state that the initial layout refuses to render.
1200
- width: options ? 1500 : 1280,
1201
- height: 820,
1203
+ ...workspaceBounds,
1202
1204
  minWidth: 760,
1203
1205
  minHeight: 520,
1204
1206
  backgroundColor: 'rgb(28, 27, 26)',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "termdock",
3
- "version": "1.4.286",
3
+ "version": "1.4.287",
4
4
  "description": "A complete web-based terminal application with modern UI",
5
5
  "type": "module",
6
6
  "main": ".desktop-dist/main.js",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "packageName": "termdock",
4
- "version": "1.4.286",
4
+ "version": "1.4.287",
5
5
  "runtimeProtocolVersion": 1,
6
6
  "minimumDesktopVersion": "1.4.46",
7
7
  "nodeMajor": 22,