Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

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

wizardchenc63c3fa8758d
diff --git a/cmd/desktop/main.go b/cmd/desktop/main.go
index 943f16012..f50f04d1f 100644
--- a/cmd/desktop/main.go
+++ b/cmd/desktop/main.go
@@ -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,
},