fix: titlebar dragging area and add double-click to maximize

This commit is contained in:
2026-09-23 00:12:18 +08:00
parent c58c319805
commit cbc953948c
4 changed files with 23 additions and 2 deletions
+11 -2
View File
@@ -46,9 +46,8 @@ body {
display: flex;
align-items: center;
gap: 8px;
flex: 1;
overflow: hidden;
-webkit-app-region: no-drag;
-webkit-app-region: drag; /* 允许左侧空白和品牌区域拖拽 */
}
.app-brand {
@@ -60,6 +59,16 @@ body {
color: var(--accent-color);
padding: 0 8px;
letter-spacing: 0.5px;
-webkit-app-region: drag;
cursor: grab;
}
.titlebar-drag-spacer {
flex: 1;
height: 100%;
-webkit-app-region: drag; /* 中间大面积空白区域允许拖拽 */
cursor: grab;
min-width: 40px;
}
.app-brand-icon {