fix(desktop): make module location renderers interactive on macOS

The macOS frameless-titlebar CSS marks .mx_RoomView_wrapper as a
-webkit-app-region drag handle, which swallows all mouse/keyboard input
for its descendants. Module location renderers (the HealthChat Angular
custom elements like hc-user-browser / hc-admin-dashboard) are mounted
there but match none of the no-drag exclusions, so their inputs and
buttons were dead in the desktop app while working in the web app.

Exclude the room-view wrapper's direct children from the drag region so
the mounted page receives pointer events; the existing .mx_RoomView child
and the ::before drag strips are unaffected.
This commit is contained in:
2026-06-30 18:03:47 +02:00
parent 8b4b63b245
commit dd461ddca9
+6
View File
@@ -106,6 +106,12 @@ export function setupMacosTitleBar(window: BrowserWindow): void {
iframe {
-webkit-app-region: no-drag;
}
/* HealthChat: exclude the page mounted in the room-view wrapper (incl. module
location renderers like the Angular custom elements) so their inputs/buttons
receive mouse events instead of being swallowed by the window-drag region */
.mx_RoomView_wrapper > * {
-webkit-app-region: no-drag;
}
/* Add a bar above room header + left panel */