逻辑修改

This commit is contained in:
2025-09-12 12:53:04 +08:00
parent 27b70ac35f
commit 67728c5c55
3 changed files with 37 additions and 48 deletions

View File

@@ -1,3 +1,5 @@
$titleBarHeight: 40px;
/* 窗体容器 */
.window {
width: 100%;
@@ -15,6 +17,8 @@
justify-content: space-between;
align-items: center;
user-select: none;
width: 100%;
height: $titleBarHeight;
.title {
display: block;
@@ -24,6 +28,7 @@
white-space: nowrap;
text-overflow: ellipsis;
font-size: 18px;
line-height: $titleBarHeight;
}
.window-controls {
@@ -52,6 +57,7 @@
/* 窗体内容 */
.window-content {
padding: 15px;
width: 100%;
height: calc(100% - #{$titleBarHeight});
background-color: #e0e0e0;
}

View File

@@ -53,7 +53,7 @@ export default class WindowFormImpl implements IWindowForm {
handle: header,
snapAnimation: true,
snapThreshold: 20,
boundary: document.body,
boundaryElement: document.body,
taskbarElementId: '#taskbar',
onWindowStateChange: (state) => {
if (state === 'maximized') {