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 := ` css := `
const style = document.createElement('style'); const style = document.createElement('style');
style.innerHTML = ` + "`" + ` 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; --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; --wails-draggable: no-drag !important;
} }
.sidebar-toggle, .logo_box { .sidebar-toggle, .logo_box {
@@ -187,7 +187,7 @@ func main() {
` `
wailsruntime.WindowExecJS(ctx, css) wailsruntime.WindowExecJS(ctx, css)
}, },
OnShutdown: app.shutdown, OnShutdown: app.shutdown,
Bind: []interface{}{ Bind: []interface{}{
app, app,
}, },