feat: expand draggable areas for macOS hiddenInset titlebar in desktop app

This commit is contained in:
wizardchen
2026-04-11 01:17:10 +08:00
committed by lyingbug
parent a6b9914254
commit c63c3fa875
+3 -3
View File
@@ -173,10 +173,10 @@ func main() {
css := `
const style = document.createElement('style');
style.innerHTML = ` + "`" + `
.logo_row, .menu_top, .chat-header {
.logo_row, .menu_top, .chat-header, .header, .dialog-header, .sidebar-header, .document-header {
--wails-draggable: drag !important;
}
.logo_row *, .menu_top *, .chat-header * {
.logo_row *, .menu_top *, .chat-header *, .header *, .dialog-header *, .sidebar-header *, .document-header * {
--wails-draggable: no-drag !important;
}
.sidebar-toggle, .logo_box {
@@ -187,7 +187,7 @@ func main() {
`
wailsruntime.WindowExecJS(ctx, css)
},
OnShutdown: app.shutdown,
OnShutdown: app.shutdown,
Bind: []interface{}{
app,
},