Skip to content

Commit 4fa8572

Browse files
committed
Merge remote-tracking branch 'origin/develop' into dbkr/group_userlist
2 parents 3ff6282 + ec6efd2 commit 4fa8572

7 files changed

Lines changed: 115 additions & 5 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.createDialog(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.createDialog(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.createDialog(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.createDialog(ErrorDialog, {

‎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/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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ $focus-brightness: 200%;
2020
// red warning colour
2121
$warning-color: #ff0064;
2222

23+
$other-user-pill-bg-color: rgba(255, 255, 255, 0.1);
24+
2325
$preview-bar-bg-color: #333;
2426

2527
// left-panel style muted accent color

0 commit comments

Comments
 (0)