From 9fed8c4c7b8570a4f130168d69772b4cbc70335e Mon Sep 17 00:00:00 2001 From: sunyuqiang <1129921824@qq.com> Date: Tue, 19 Sep 2023 19:50:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=81=E7=94=A8electron=E7=9A=84=E6=8B=BC?= =?UTF-8?q?=E5=86=99=E6=A3=80=E6=9F=A5=20&=20=E8=AE=BE=E7=BD=AE=E7=AA=97?= =?UTF-8?q?=E4=BD=93=E6=9C=80=E5=B0=8F=E9=AB=98=E5=BA=A6=E4=B8=BA60?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/browsers/detach.ts | 2 ++ src/main/browsers/guide.ts | 2 ++ src/main/browsers/main.ts | 2 ++ src/main/browsers/runner.ts | 1 + 4 files changed, 7 insertions(+) diff --git a/src/main/browsers/detach.ts b/src/main/browsers/detach.ts index 3a9ac55..773e818 100644 --- a/src/main/browsers/detach.ts +++ b/src/main/browsers/detach.ts @@ -17,6 +17,7 @@ export default () => { const createWindow = async (pluginInfo, viewInfo, view) => { win = new BrowserWindow({ height: viewInfo.height, + minHeight: 60, width: viewInfo.width, autoHideMenuBar: true, titleBarStyle: 'hidden', @@ -36,6 +37,7 @@ export default () => { webviewTag: true, devTools: true, nodeIntegration: true, + spellcheck: false, }, }); if (process.env.WEBPACK_DEV_SERVER_URL) { diff --git a/src/main/browsers/guide.ts b/src/main/browsers/guide.ts index 1d37f85..679680d 100644 --- a/src/main/browsers/guide.ts +++ b/src/main/browsers/guide.ts @@ -41,6 +41,7 @@ export default () => { y, width: 800, height: 600, + minHeight: 60, webPreferences: { webSecurity: false, backgroundThrottling: false, @@ -48,6 +49,7 @@ export default () => { webviewTag: true, devTools: true, nodeIntegration: true, + spellcheck: false, }, }); if (process.env.WEBPACK_DEV_SERVER_URL) { diff --git a/src/main/browsers/main.ts b/src/main/browsers/main.ts index 1b5f5f5..b1ccf0c 100644 --- a/src/main/browsers/main.ts +++ b/src/main/browsers/main.ts @@ -18,6 +18,7 @@ export default () => { const createWindow = async () => { win = new BrowserWindow({ height: 60, + minHeight: 60, useContentSize: true, resizable: true, width: 800, @@ -33,6 +34,7 @@ export default () => { webviewTag: true, nodeIntegration: true, preload: path.join(__static, 'preload.js'), + spellcheck: false, }, }); if (process.env.WEBPACK_DEV_SERVER_URL) { diff --git a/src/main/browsers/runner.ts b/src/main/browsers/runner.ts index c6fee6a..c2cb8bf 100644 --- a/src/main/browsers/runner.ts +++ b/src/main/browsers/runner.ts @@ -128,6 +128,7 @@ export default () => { standard: 'system-ui', serif: 'system-ui', }, + spellcheck: false, }, }); window.setBrowserView(view);