From 840fdd0e76e98df7027cd709cad3445343fd97ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=98=89=E4=BC=9F?= <8473136@qq.com> Date: Mon, 5 Aug 2024 22:46:11 +0800 Subject: [PATCH] =?UTF-8?q?:lipstick:=20=E7=AA=97=E5=8F=A3=E6=9C=80?= =?UTF-8?q?=E5=B0=8F=E4=B8=BA800x600?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/main/index.ts | 4 ++++ src/styles/layout.scss | 16 +++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/electron/main/index.ts b/electron/main/index.ts index cd278fd..252b865 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -52,8 +52,12 @@ async function createWindow() { win = new BrowserWindow({ title: "Frpc Desktop", icon: join(process.env.VITE_PUBLIC, "logo/16x16.png"), + width: 800, + height: 600, minWidth: 800, minHeight: 600, + maxWidth: 800, + maxHeight: 600, webPreferences: { preload, // Warning: Enable nodeIntegration and disable contextIsolation is not secure in production diff --git a/src/styles/layout.scss b/src/styles/layout.scss index 6504d8b..081763b 100644 --- a/src/styles/layout.scss +++ b/src/styles/layout.scss @@ -45,6 +45,17 @@ $danger-color: #F56C6C; background: #fff; width: 60px; height: 100vh; + display: flex; /* 设置为 flexbox */ + flex-direction: column; /* 纵向排列子元素 */ + + .version { + height: 40px; + color: $primary-color; + text-align: center; + margin-top: auto; + font-weight: bold; + font-size: 14px; + } .menu-container { @@ -67,6 +78,9 @@ $danger-color: #F56C6C; color: $primary-color; cursor: pointer; } + + + } } @@ -88,4 +102,4 @@ $danger-color: #F56C6C; .danger-text { color: $danger-color !important; -} \ No newline at end of file +}