💄 窗口最小为800x600
This commit is contained in:
parent
4fc456f3f7
commit
840fdd0e76
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user