mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-31 05:29:58 +01:00
Fix edge cases around macos draggability (#1291)
This commit is contained in:
parent
6637923701
commit
e330d0c3e7
@ -88,7 +88,8 @@ export function setupMacosTitleBar(window: BrowserWindow): void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Mark the background as a drag handle only if no modal is open */
|
/* Mark the background as a drag handle only if no modal is open */
|
||||||
.mx_MatrixChat_wrapper[aria-hidden="false"] .mx_RoomView_wrapper {
|
.mx_MatrixChat_wrapper[aria-hidden="false"] .mx_RoomView_wrapper,
|
||||||
|
.mx_MatrixChat_wrapper[aria-hidden="false"] .mx_HomePage {
|
||||||
-webkit-app-region: drag;
|
-webkit-app-region: drag;
|
||||||
}
|
}
|
||||||
/* Exclude content elements from being drag handles */
|
/* Exclude content elements from being drag handles */
|
||||||
@ -99,7 +100,9 @@ export function setupMacosTitleBar(window: BrowserWindow): void {
|
|||||||
.mx_RightPanel_ResizeWrapper,
|
.mx_RightPanel_ResizeWrapper,
|
||||||
.mx_RoomPreviewCard,
|
.mx_RoomPreviewCard,
|
||||||
.mx_LeftPanel,
|
.mx_LeftPanel,
|
||||||
.mx_RoomView {
|
.mx_RoomView,
|
||||||
|
.mx_SpaceRoomView,
|
||||||
|
.mx_AccessibleButton {
|
||||||
-webkit-app-region: no-drag;
|
-webkit-app-region: no-drag;
|
||||||
}
|
}
|
||||||
/* Exclude context menus and their backgrounds */
|
/* Exclude context menus and their backgrounds */
|
||||||
@ -123,10 +126,16 @@ export function setupMacosTitleBar(window: BrowserWindow): void {
|
|||||||
-webkit-app-region: drag;
|
-webkit-app-region: drag;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_RoomView::before {
|
.mx_RoomView::before,
|
||||||
|
.mx_SpaceRoomView::before {
|
||||||
content: "";
|
content: "";
|
||||||
-webkit-app-region: drag;
|
-webkit-app-region: drag;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mx_SpaceRoomView::before {
|
||||||
|
display: block;
|
||||||
|
height: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
.mx_RoomView[data-room-header="new"]::before {
|
.mx_RoomView[data-room-header="new"]::before {
|
||||||
height: 13px;
|
height: 13px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user