Skip to content

Commit 5b6dbfb

Browse files
committed
Merge branch 'develop' of github.com:vector-im/riot-web into t3chguy/i18n_analytics
2 parents 93a3c89 + 384727a commit 5b6dbfb

12 files changed

Lines changed: 196 additions & 7 deletions

File tree

‎src/components/structures/RoomSubList.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ var RoomSubList = React.createClass({
511511
if (list[i].tags[self.props.tagName] && list[i].tags[self.props.tagName].order === undefined) {
512512
MatrixClientPeg.get().setRoomTag(list[i].roomId, self.props.tagName, {order: (order + 1.0) / 2.0}).finally(function() {
513513
// Do any final stuff here
514-
}).fail(function(err) {
514+
}).catch(function(err) {
515515
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
516516
console.error("Failed to add tag " + self.props.tagName + " to room" + err);
517517
Modal.createTrackedDialog('Failed to add tag to room', err.toString(), ErrorDialog, {

‎src/components/views/context_menus/RoomTileContextMenu.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ module.exports = React.createClass({
6868
if (self.props.onFinished) {
6969
self.props.onFinished();
7070
};
71-
}).fail(function(err) {
71+
}).catch(function(err) {
7272
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
7373
Modal.createTrackedDialog('Failed to remove tag from room 1', err.toString(), ErrorDialog, {
7474
title: _t('Failed to remove tag %(tagName)s from room', {tagName: tagNameOff}),
@@ -85,7 +85,7 @@ module.exports = React.createClass({
8585
if (self.props.onFinished) {
8686
self.props.onFinished();
8787
};
88-
}).fail(function(err) {
88+
}).catch(function(err) {
8989
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
9090
Modal.createTrackedDialog('Failed to remove tag from room 2', err.toString(), ErrorDialog, {
9191
title: _t('Failed to remove tag %(tagName)s from room', {tagName: tagNameOn}),

‎src/components/views/rooms/DNDRoomTile.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ var roomTileSource = {
111111
//component.state.set({ spinner: component.state.spinner ? component.state.spinner++ : 1 });
112112
MatrixClientPeg.get().deleteRoomTag(item.room.roomId, prevTag).finally(function() {
113113
//component.state.set({ spinner: component.state.spinner-- });
114-
}).fail(function(err) {
114+
}).catch(function(err) {
115115
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
116116
console.error("Failed to remove tag " + prevTag + " from room: " + err);
117117
Modal.createTrackedDialog('Failed to remove tag from room', err.toString(), ErrorDialog, {

‎src/skins/vector/css/_common.scss‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ textarea {
319319
cursor: help;
320320
transition-duration: 200ms;
321321
font-size: smaller;
322+
filter: opacity(0.5);
322323
}
323324

324325
.mx_Beta:hover {

‎src/skins/vector/css/matrix-react-sdk/structures/_GroupView.scss‎

Lines changed: 106 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,115 @@ limitations under the License.
1717
.mx_GroupView {
1818
max-width: 960px;
1919
width: 100%;
20-
margin: 20px auto;
2120
}
2221

2322
.mx_GroupView_error {
2423
margin: auto;
2524
}
2625

26+
.mx_GroupView_header {
27+
max-width: 960px;
28+
margin: auto;
29+
height: 70px;
30+
align-items: center;
31+
display: flex;
32+
margin-bottom: 20px;
33+
}
34+
35+
.mx_GroupView_header_view {
36+
border-bottom: 1px solid #e5e5e5;
37+
}
38+
39+
.mx_GroupView_header_avatar, .mx_GroupView_header_info {
40+
display: table-cell;
41+
vertical-align: middle;
42+
}
43+
44+
.mx_GroupHeader_button {
45+
margin-left: 12px;
46+
cursor: pointer;
47+
}
48+
49+
.mx_GroupHeader_button object {
50+
// prevents clicks from being swallowed by svg in 'object' tag
51+
pointer-events: none;
52+
}
53+
54+
.mx_GroupView_avatarPicker {
55+
position: relative;
56+
}
57+
58+
.mx_GroupView_avatarPicker_edit {
59+
position: absolute;
60+
top: 50px;
61+
left: 15px;
62+
}
63+
64+
.mx_GroupView_avatarPicker .mx_Spinner {
65+
width: 48px;
66+
height: 48px ! important;
67+
}
68+
69+
.mx_GroupView_header_leftCol {
70+
flex: 1;
71+
}
72+
73+
.mx_GroupView_saveButton, .mx_GroupView_cancelButton {
74+
display: table-cell;
75+
}
76+
2777
.mx_GroupView_header_groupid {
2878
font-weight: normal;
2979
font-size: initial;
3080
padding-left: 10px;
3181
}
3282

83+
.mx_GroupView_header_name {
84+
vertical-align: middle;
85+
width: 100%;
86+
height: 31px;
87+
overflow: hidden;
88+
color: $primary-fg-color;
89+
font-weight: bold;
90+
font-size: 22px;
91+
padding-left: 19px;
92+
padding-right: 16px;
93+
/* why isn't text-overflow working? */
94+
text-overflow: ellipsis;
95+
border-bottom: 1px solid transparent;
96+
}
97+
98+
.mx_GroupView_header_name input, .mx_GroupView_header_shortDesc input {
99+
width: 400px;
100+
}
101+
102+
.mx_GroupView_header_shortDesc {
103+
vertical-align: bottom;
104+
float: left;
105+
max-height: 42px;
106+
color: $settings-grey-fg-color;
107+
font-weight: 300;
108+
font-size: 13px;
109+
padding-left: 19px;
110+
margin-right: 16px;
111+
overflow: hidden;
112+
text-overflow: ellipsis;
113+
border-bottom: 1px solid transparent;
114+
}
115+
116+
.mx_GroupView_avatarPicker_label {
117+
cursor: pointer;
118+
}
119+
120+
.mx_GroupView_cancelButton {
121+
padding-left: 8px;
122+
}
123+
124+
.mx_GroupView_cancelButton img {
125+
position: relative;
126+
top: 5px;
127+
}
128+
33129
.mx_GroupView_featuredThings {
34130
margin-top: 20px;
35131
}
@@ -50,3 +146,12 @@ limitations under the License.
50146
cursor: pointer;
51147
display: table-cell;
52148
}
149+
150+
.mx_GroupView_uploadInput {
151+
display: none;
152+
}
153+
154+
.mx_GroupView_editLongDesc {
155+
width: 100%;
156+
height: 150px;
157+
}

‎src/skins/vector/css/matrix-react-sdk/views/elements/_RichText.scss‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
.mx_EventTile_content .markdown-body a.mx_UserPill,
1515
.mx_UserPill {
1616
color: $primary-fg-color;
17+
background-color: $other-user-pill-bg-color;
18+
padding-right: 5px;
1719
}
1820

1921
.mx_EventTile_highlight .mx_EventTile_content .markdown-body a.mx_UserPill_me {

‎src/skins/vector/css/matrix-react-sdk/views/rooms/_AppsDrawer.scss‎

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,20 @@ limitations under the License.
8383
border: 1px solid transparent;
8484
}
8585

86+
.mx_AppTileMenuBarWidgetDelete {
87+
filter: none;
88+
}
89+
8690
.mx_AppTileMenuBarWidget:hover {
8791
border: 1px solid $primary-hairline-color;
8892
border-radius: 2px;
8993
}
9094

95+
.mx_AppTileBody{
96+
height: 350px;
97+
overflow: hidden;
98+
}
99+
91100
.mx_AppTileBody iframe {
92101
width: 100%;
93102
height: 350px;
@@ -167,3 +176,52 @@ form.mx_Custom_Widget_Form div {
167176
margin-top: 10px;
168177
margin-bottom: 10px;
169178
}
179+
180+
.mx_AppPermissionWarning {
181+
text-align: center;
182+
padding: 30px 0;
183+
background-color: $primary-bg-color;
184+
}
185+
186+
.mx_AppPermissionWarningImage {
187+
margin: 10px 0;
188+
}
189+
190+
.mx_AppPermissionWarningImage img {
191+
width: 150px;
192+
}
193+
194+
.mx_AppPermissionWarningText {
195+
max-width: 400px;
196+
margin: 10px auto 10px auto;
197+
color: $primary-fg-color;
198+
}
199+
200+
.mx_AppPermissionWarningTextLabel {
201+
font-weight: bold;
202+
}
203+
204+
.mx_AppPermissionWarningTextURL {
205+
color: $accent-color;
206+
}
207+
208+
.mx_AppPermissionButton {
209+
padding: 5px;
210+
border-radius: 5px;
211+
color: $warning-color;
212+
background-color: $primary-bg-color;
213+
}
214+
215+
.mx_AppPermissionButton:hover {
216+
background-color: $primary-fg-color;
217+
cursor: pointer;
218+
}
219+
220+
.mx_AppLoading {
221+
min-height: 305px;
222+
display: flex;
223+
flex-direction: column;
224+
justify-content: center;
225+
align-items: center;
226+
font-weight: bold;
227+
}

‎src/skins/vector/css/matrix-react-sdk/views/rooms/_EventTile.scss‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@ limitations under the License.
128128
color: $event-sending-color;
129129
}
130130

131+
.mx_EventTile_sending .mx_UserPill,
132+
.mx_EventTile_sending .mx_RoomPill,
133+
.mx_EventTile_sending .mx_emojione {
134+
opacity: 0.5;
135+
}
136+
131137
.mx_EventTile_notSent {
132138
color: $event-notsent-color;
133139
}
@@ -370,6 +376,7 @@ limitations under the License.
370376
.mx_EventTile_content .markdown-body h6
371377
{
372378
font-family: inherit ! important;
379+
color: inherit;
373380
}
374381

375382

‎src/skins/vector/css/matrix-react-sdk/views/rooms/_MessageComposer.scss‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ limitations under the License.
9595
.mx_MessageComposer_input .DraftEditor-root {
9696
width: 100%;
9797
flex: 1;
98-
max-height: 120px;
99-
overflow: auto;
10098
word-break: break-word;
10199
}
102100

@@ -105,6 +103,11 @@ limitations under the License.
105103
padding-top: 2px;
106104
}
107105

106+
.mx_MessageComposer_input .public-DraftEditor-content {
107+
max-height: 120px;
108+
overflow: auto;
109+
}
110+
108111
.mx_MessageComposer_input blockquote {
109112
color: $blockquote-fg-color;
110113
margin: 0 0 16px;

‎src/skins/vector/css/themes/_base.scss‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ $focus-brightness: 125%;
2020
// red warning colour
2121
$warning-color: #ff0064;
2222
$mention-user-pill-bg-color: #ff0064;
23+
$other-user-pill-bg-color: rgba(0, 0, 0, 0.1);
2324

2425
$preview-bar-bg-color: #f7f7f7;
2526

0 commit comments

Comments
 (0)