💄 窗口最小为800x600

This commit is contained in:
刘嘉伟 2024-08-05 22:46:11 +08:00
parent 4fc456f3f7
commit 840fdd0e76
2 changed files with 19 additions and 1 deletions

View File

@ -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

View File

@ -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;
}
}
}