Restore macOs room header dragability (#1136)

This commit is contained in:
Germain 2023-08-02 08:05:13 +01:00 committed by GitHub
parent 6aac68ca9a
commit 07523ecfdd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,15 +72,18 @@ export function setupMacosTitleBar(window: BrowserWindow): void {
}
/* Mark the header as a drag handle */
.mx_LegacyRoomHeader,
.mx_RoomHeader {
-webkit-app-region: drag;
-webkit-user-select: none;
}
/* Exclude header interactive elements from being drag handles */
.mx_RoomHeader .mx_RoomHeader_avatar,
.mx_RoomHeader .mx_E2EIcon,
.mx_RoomHeader .mx_RoomTopic,
.mx_RoomHeader .mx_AccessibleButton {
.mx_RoomHeader .mx_DecoratedRoomAvatar,
.mx_RoomHeader_name,
.mx_LegacyRoomHeader .mx_LegacyRoomHeader_avatar,
.mx_LegacyRoomHeader .mx_E2EIcon,
.mx_LegacyRoomHeader .mx_RoomTopic,
.mx_LegacyRoomHeader .mx_AccessibleButton {
-webkit-app-region: no-drag;
}