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 +}