Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 3b6790f

Browse files
committed
Merge branch 'develop' into fix-notif-jumpy-ui
2 parents c4a3906 + cf5ec77 commit 3b6790f

27 files changed

+428
-103
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
Changes in [3.13.1](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.13.1) (2021-02-04)
2+
=====================================================================================================
3+
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v3.13.0...v3.13.1)
4+
5+
* [Release] Fix z-index of stickerpicker
6+
[\#5618](https://github.com/matrix-org/matrix-react-sdk/pull/5618)
7+
18
Changes in [3.13.0](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.13.0) (2021-02-03)
29
=====================================================================================================
310
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v3.13.0-rc.1...v3.13.0)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "matrix-react-sdk",
3-
"version": "3.13.0",
3+
"version": "3.13.1",
44
"description": "SDK for matrix.org using React",
55
"author": "matrix.org",
66
"repository": {

res/css/_common.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ limitations under the License.
2121

2222
$hover-transition: 0.08s cubic-bezier(.46, .03, .52, .96); // quadratic
2323

24+
$EventTile_e2e_state_indicator_width: 4px;
25+
26+
$MessageTimestamp_width: 46px; /* 8 + 30 (avatar) + 8 */
27+
$MessageTimestamp_width_hover: calc($MessageTimestamp_width - 2 * $EventTile_e2e_state_indicator_width);
28+
2429
:root {
2530
font-size: 10px;
2631
}

res/css/_components.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
@import "./views/elements/_AddressTile.scss";
107107
@import "./views/elements/_DesktopBuildsNotice.scss";
108108
@import "./views/elements/_DirectorySearchBox.scss";
109+
@import "./views/elements/_DesktopCapturerSourcePicker.scss";
109110
@import "./views/elements/_Dropdown.scss";
110111
@import "./views/elements/_EditableItemList.scss";
111112
@import "./views/elements/_ErrorBoundary.scss";

res/css/structures/_RoomDirectory.scss

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -64,28 +64,23 @@ limitations under the License.
6464
}
6565

6666
.mx_RoomDirectory_table {
67-
font-size: $font-12px;
6867
color: $primary-fg-color;
69-
width: 100%;
68+
display: grid;
69+
font-size: $font-12px;
70+
grid-template-columns: max-content auto max-content max-content max-content;
71+
row-gap: 24px;
7072
text-align: left;
71-
table-layout: fixed;
73+
width: 100%;
7274
}
7375

7476
.mx_RoomDirectory_roomAvatar {
75-
width: 32px;
76-
padding-right: 14px;
77-
vertical-align: top;
78-
}
79-
80-
.mx_RoomDirectory_roomDescription {
81-
padding-bottom: 16px;
77+
padding: 2px 14px 0 0;
8278
}
8379

8480
.mx_RoomDirectory_roomMemberCount {
81+
align-self: center;
8582
color: $light-fg-color;
86-
width: 60px;
87-
padding: 0 10px;
88-
text-align: center;
83+
padding: 3px 10px 0;
8984

9085
&::before {
9186
background-color: $light-fg-color;
@@ -105,8 +100,7 @@ limitations under the License.
105100
}
106101

107102
.mx_RoomDirectory_join, .mx_RoomDirectory_preview {
108-
width: 80px;
109-
text-align: center;
103+
align-self: center;
110104
white-space: nowrap;
111105
}
112106

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
/*
2+
Copyright 2021 Šimon Brandner <[email protected]>
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
.mx_desktopCapturerSourcePicker {
18+
overflow: hidden;
19+
}
20+
21+
.mx_desktopCapturerSourcePicker_tabLabels {
22+
display: flex;
23+
padding: 0 0 8px 0;
24+
}
25+
26+
.mx_desktopCapturerSourcePicker_tabLabel,
27+
.mx_desktopCapturerSourcePicker_tabLabel_selected {
28+
width: 100%;
29+
text-align: center;
30+
border-radius: 8px;
31+
padding: 8px 0;
32+
font-size: $font-13px;
33+
}
34+
35+
.mx_desktopCapturerSourcePicker_tabLabel_selected {
36+
background-color: $tab-label-active-bg-color;
37+
color: $tab-label-active-fg-color;
38+
}
39+
40+
.mx_desktopCapturerSourcePicker_panel {
41+
display: flex;
42+
flex-wrap: wrap;
43+
justify-content: center;
44+
align-items: flex-start;
45+
height: 500px;
46+
overflow: overlay;
47+
}
48+
49+
.mx_desktopCapturerSourcePicker_stream_button {
50+
display: flex;
51+
flex-direction: column;
52+
margin: 8px;
53+
border-radius: 4px;
54+
}
55+
56+
.mx_desktopCapturerSourcePicker_stream_button:hover,
57+
.mx_desktopCapturerSourcePicker_stream_button:focus {
58+
background: $roomtile-selected-bg-color;
59+
}
60+
61+
.mx_desktopCapturerSourcePicker_stream_thumbnail {
62+
margin: 4px;
63+
width: 312px;
64+
}
65+
66+
.mx_desktopCapturerSourcePicker_stream_name {
67+
margin: 0 4px;
68+
white-space: nowrap;
69+
text-overflow: ellipsis;
70+
overflow: hidden;
71+
width: 312px;
72+
}

res/css/views/messages/_RedactedBody.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ limitations under the License.
3030
mask-size: contain;
3131
content: '';
3232
position: absolute;
33-
top: 2px;
33+
top: 1px;
3434
left: 0;
3535
}
3636
}

res/css/views/rooms/_EventTile.scss

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ $left-gutter: 64px;
2626
}
2727

2828
.mx_EventTile.mx_EventTile_info {
29-
padding-top: 0px;
29+
padding-top: 1px;
3030
}
3131

3232
.mx_EventTile_avatar {
@@ -37,7 +37,7 @@ $left-gutter: 64px;
3737
}
3838

3939
.mx_EventTile.mx_EventTile_info .mx_EventTile_avatar {
40-
top: $font-8px;
40+
top: $font-6px;
4141
left: $left-gutter;
4242
}
4343

@@ -420,15 +420,15 @@ $left-gutter: 64px;
420420
}
421421

422422
.mx_EventTile:hover.mx_EventTile_verified .mx_EventTile_line {
423-
border-left: $e2e-verified-color 4px solid;
423+
border-left: $e2e-verified-color $EventTile_e2e_state_indicator_width solid;
424424
}
425425

426426
.mx_EventTile:hover.mx_EventTile_unverified .mx_EventTile_line {
427-
border-left: $e2e-unverified-color 4px solid;
427+
border-left: $e2e-unverified-color $EventTile_e2e_state_indicator_width solid;
428428
}
429429

430430
.mx_EventTile:hover.mx_EventTile_unknown .mx_EventTile_line {
431-
border-left: $e2e-unknown-color 4px solid;
431+
border-left: $e2e-unknown-color $EventTile_e2e_state_indicator_width solid;
432432
}
433433

434434
.mx_EventTile:hover.mx_EventTile_verified.mx_EventTile_info .mx_EventTile_line,
@@ -446,8 +446,7 @@ $left-gutter: 64px;
446446
.mx_EventTile:hover.mx_EventTile_verified .mx_EventTile_line > a > .mx_MessageTimestamp,
447447
.mx_EventTile:hover.mx_EventTile_unverified .mx_EventTile_line > a > .mx_MessageTimestamp,
448448
.mx_EventTile:hover.mx_EventTile_unknown .mx_EventTile_line > a > .mx_MessageTimestamp {
449-
left: 3px;
450-
width: auto;
449+
width: $MessageTimestamp_width_hover;
451450
}
452451

453452
// Explicit relationships so that it doesn't apply to nested EventTile components (e.g in Replies)

res/css/views/rooms/_GroupLayout.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ $left-gutter: 64px;
3434

3535
.mx_MessageTimestamp {
3636
position: absolute;
37-
width: 46px; /* 8 + 30 (avatar) + 8 */
37+
width: $MessageTimestamp_width;
3838
}
3939

4040
.mx_EventTile_line, .mx_EventTile_reply {

src/CallHandler.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ import CountlyAnalytics from "./CountlyAnalytics";
8282
import {UIFeature} from "./settings/UIFeature";
8383
import { CallError } from "matrix-js-sdk/src/webrtc/call";
8484
import { logger } from 'matrix-js-sdk/src/logger';
85+
import DesktopCapturerSourcePicker from "./components/views/elements/DesktopCapturerSourcePicker"
8586
import { Action } from './dispatcher/actions';
8687
import { roomForVirtualRoom, getOrCreateVirtualRoomForRoom } from './VoipUserMapper';
8788
import { addManagedHybridWidget, isManagedHybridWidgetEnabled } from './widgets/ManagedHybrid';
@@ -572,7 +573,15 @@ export default class CallHandler {
572573
});
573574
return;
574575
}
575-
call.placeScreenSharingCall(remoteElement, localElement);
576+
577+
call.placeScreenSharingCall(
578+
remoteElement,
579+
localElement,
580+
async () : Promise<DesktopCapturerSource> => {
581+
const {finished} = Modal.createDialog(DesktopCapturerSourcePicker);
582+
const [source] = await finished;
583+
return source;
584+
});
576585
} else {
577586
console.error("Unknown conf call type: %s", type);
578587
}

0 commit comments

Comments
 (0)