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

Commit 4e12aec

Browse files
committed
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/feat/room-list-widgets
� Conflicts: � src/components/views/elements/AppTile.js
2 parents 568e147 + fb3b5d2 commit 4e12aec

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+1352
-1123
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
Changes in [3.6.1](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.6.1) (2020-10-20)
2+
===================================================================================================
3+
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v3.6.0...v3.6.1)
4+
5+
* [Release] Adjust for new widget messaging APIs
6+
[\#5342](https://github.com/matrix-org/matrix-react-sdk/pull/5342)
7+
* [Release] Fix Jitsi OpenIDC auth
8+
[\#5335](https://github.com/matrix-org/matrix-react-sdk/pull/5335)
9+
110
Changes in [3.6.0](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.6.0) (2020-10-12)
211
===================================================================================================
312
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v3.6.0-rc.1...v3.6.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.6.0",
3+
"version": "3.6.1",
44
"description": "SDK for matrix.org using React",
55
"author": "matrix.org",
66
"repository": {

release.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ do
3232
echo "Upgrading $i to $latestver..."
3333
yarn add -E $i@$latestver
3434
git add -u
35-
# The `-e` flag opens the editor and gives you a chance to check
36-
# the upgrade for correctness.
37-
git commit -m "Upgrade $i to $latestver" -e
35+
git commit -m "Upgrade $i to $latestver"
3836
fi
3937
fi
4038
done

res/css/_components.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@
5252
@import "./views/avatars/_DecoratedRoomAvatar.scss";
5353
@import "./views/avatars/_MemberStatusMessageAvatar.scss";
5454
@import "./views/avatars/_PulsedAvatar.scss";
55+
@import "./views/avatars/_WidgetAvatar.scss";
5556
@import "./views/context_menus/_IconizedContextMenu.scss";
5657
@import "./views/context_menus/_MessageContextMenu.scss";
5758
@import "./views/context_menus/_StatusMessageContextMenu.scss";
5859
@import "./views/context_menus/_TagTileContextMenu.scss";
59-
@import "./views/context_menus/_WidgetContextMenu.scss";
6060
@import "./views/dialogs/_AddressPickerDialog.scss";
6161
@import "./views/dialogs/_Analytics.scss";
6262
@import "./views/dialogs/_BugReportDialog.scss";

res/css/structures/_MatrixChat.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ limitations under the License.
7979
height: 100%;
8080
}
8181

82-
.mx_MatrixChat > .mx_LeftPanel2:hover + .mx_ResizeHandle_horizontal,
8382
.mx_MatrixChat > .mx_ResizeHandle_horizontal:hover {
8483
position: relative;
8584

res/css/structures/_UserMenu.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,10 @@ limitations under the License.
230230
align-items: center;
231231
justify-content: center;
232232
}
233+
234+
&.mx_UserMenu_contextMenu_hostingLink {
235+
padding-top: 0;
236+
}
233237
}
234238

235239
.mx_IconizedContextMenu_icon {

src/dispatcher/payloads/AppTileActionPayload.ts renamed to res/css/views/avatars/_WidgetAvatar.scss

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
import { ActionPayload } from "../payloads";
18-
import { Action } from "../actions";
19-
20-
export interface AppTileActionPayload extends ActionPayload {
21-
action: Action.AppTileDelete | Action.AppTileRevoke;
22-
widgetId: string;
17+
.mx_WidgetAvatar {
18+
border-radius: 4px;
2319
}

res/css/views/context_menus/_WidgetContextMenu.scss

Lines changed: 0 additions & 36 deletions
This file was deleted.

res/css/views/right_panel/_BaseCard.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,13 @@ limitations under the License.
128128
mask-size: 20px;
129129
mask-image: url('$(res)/img/feather-customised/chevron-down.svg');
130130
}
131+
132+
&.mx_AccessibleButton_disabled {
133+
padding-right: 12px;
134+
&::after {
135+
content: unset;
136+
}
137+
}
131138
}
132139
}
133140

res/css/views/right_panel/_RoomSummaryCard.scss

Lines changed: 91 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -110,28 +110,107 @@ limitations under the License.
110110

111111
.mx_RoomSummaryCard_appsGroup {
112112
.mx_RoomSummaryCard_Button {
113-
padding-left: 12px;
113+
// this button is special so we have to override some of the original styling
114+
// as we will be applying it in its children
115+
padding: 0;
116+
height: auto;
114117
color: $tertiary-fg-color;
115118

116-
span {
117-
color: $primary-fg-color;
119+
.mx_RoomSummaryCard_icon_app {
120+
padding: 10px 48px 10px 12px; // based on typical mx_RoomSummaryCard_Button padding
121+
text-overflow: ellipsis;
122+
overflow: hidden;
123+
124+
.mx_BaseAvatar_image {
125+
vertical-align: top;
126+
margin-right: 12px;
127+
}
128+
129+
span {
130+
color: $primary-fg-color;
131+
}
132+
}
133+
134+
.mx_RoomSummaryCard_app_pinToggle,
135+
.mx_RoomSummaryCard_app_options {
136+
position: absolute;
137+
top: 0;
138+
height: 100%; // to give bigger interactive zone
139+
width: 24px;
140+
padding: 12px 4px;
141+
box-sizing: border-box;
142+
min-width: 24px; // prevent flexbox crushing
143+
144+
&:hover {
145+
&::after {
146+
content: '';
147+
position: absolute;
148+
height: 24px;
149+
width: 24px;
150+
top: 8px; // equal to padding-top of parent
151+
left: 0;
152+
border-radius: 12px;
153+
background-color: rgba(141, 151, 165, 0.1);
154+
}
155+
}
156+
157+
&::before {
158+
content: '';
159+
position: absolute;
160+
height: 16px;
161+
width: 16px;
162+
mask-repeat: no-repeat;
163+
mask-position: center;
164+
mask-size: 16px;
165+
background-color: $icon-button-color;
166+
}
167+
}
168+
169+
.mx_RoomSummaryCard_app_pinToggle {
170+
right: 24px;
171+
172+
&::before {
173+
mask-image: url('$(res)/img/element-icons/room/pin-upright.svg');
174+
}
175+
}
176+
177+
.mx_RoomSummaryCard_app_options {
178+
right: 48px;
179+
display: none;
180+
181+
&::before {
182+
mask-image: url('$(res)/img/element-icons/room/ellipsis.svg');
183+
}
184+
}
185+
186+
&.mx_RoomSummaryCard_Button_pinned {
187+
&::after {
188+
opacity: 0.2;
189+
}
190+
191+
.mx_RoomSummaryCard_app_pinToggle::before {
192+
background-color: $accent-color;
193+
}
118194
}
119195

120-
img {
121-
vertical-align: top;
122-
margin-right: 12px;
123-
border-radius: 4px;
196+
&:hover {
197+
.mx_RoomSummaryCard_icon_app {
198+
padding-right: 72px;
199+
}
200+
201+
.mx_RoomSummaryCard_app_options {
202+
display: unset;
203+
}
124204
}
125205

126206
&::before {
127207
content: unset;
128208
}
129-
}
130209

131-
.mx_RoomSummaryCard_icon_app_pinned::after {
132-
mask-image: url('$(res)/img/element-icons/room/pin-upright.svg');
133-
background-color: $accent-color;
134-
transform: unset;
210+
&::after {
211+
top: 8px; // re-align based on the height change
212+
pointer-events: none; // pass through to the real button
213+
}
135214
}
136215
}
137216

0 commit comments

Comments
 (0)