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.
- package/.desktop-dist/main.js +7 -5
- package/package.json +1 -1
- package/runtime-manifest.json +1 -1
package/.desktop-dist/main.js
CHANGED
|
@@ -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
|
-
|
|
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