💄 窗口最小为800x600
This commit is contained in:
parent
4fc456f3f7
commit
840fdd0e76
@ -52,8 +52,12 @@ async function createWindow() {
|
|||||||
win = new BrowserWindow({
|
win = new BrowserWindow({
|
||||||
title: "Frpc Desktop",
|
title: "Frpc Desktop",
|
||||||
icon: join(process.env.VITE_PUBLIC, "logo/16x16.png"),
|
icon: join(process.env.VITE_PUBLIC, "logo/16x16.png"),
|
||||||
|
width: 800,
|
||||||
|
height: 600,
|
||||||
minWidth: 800,
|
minWidth: 800,
|
||||||
minHeight: 600,
|
minHeight: 600,
|
||||||
|
maxWidth: 800,
|
||||||
|
maxHeight: 600,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
preload,
|
preload,
|
||||||
// Warning: Enable nodeIntegration and disable contextIsolation is not secure in production
|
// Warning: Enable nodeIntegration and disable contextIsolation is not secure in production
|
||||||
|
@ -45,6 +45,17 @@ $danger-color: #F56C6C;
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
width: 60px;
|
width: 60px;
|
||||||
height: 100vh;
|
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 {
|
.menu-container {
|
||||||
|
|
||||||
@ -67,6 +78,9 @@ $danger-color: #F56C6C;
|
|||||||
color: $primary-color;
|
color: $primary-color;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -88,4 +102,4 @@ $danger-color: #F56C6C;
|
|||||||
|
|
||||||
.danger-text {
|
.danger-text {
|
||||||
color: $danger-color !important;
|
color: $danger-color !important;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user