Skip to content

Commit 2ccd36d

Browse files
committed
Merge remote-tracking branch 'origin/develop' into erikj/group_server
2 parents f662793 + 48889b5 commit 2ccd36d

14 files changed

Lines changed: 243 additions & 348 deletions

File tree

‎.travis.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ node_js:
1919
install:
2020
# clone the deps with depth 1: we know we will only ever need that one
2121
# commit.
22-
- scripts/fetch-develop.deps.sh --depth 1 && npm install
22+
- scripts/fetch-develop.deps.sh --depth 1 && npm i phantomjs-prebuilt && npm install

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@
121121
"karma-mocha": "^0.2.2",
122122
"karma-phantomjs-launcher": "^1.0.0",
123123
"karma-webpack": "^1.7.0",
124+
"matrix-mock-request": "^1.0.0",
124125
"minimist": "^1.2.0",
125126
"mkdirp": "^0.5.1",
126127
"mocha": "^2.4.5",

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ module.exports = React.createClass({
6767

6868
onResendClick: function() {
6969
Resend.resend(this.props.mxEvent);
70-
if (this.props.onFinished) this.props.onFinished();
70+
this.closeMenu();
7171
},
7272

7373
onViewSourceClick: function() {
7474
const ViewSource = sdk.getComponent('structures.ViewSource');
7575
Modal.createDialog(ViewSource, {
7676
content: this.props.mxEvent.event,
7777
}, 'mx_Dialog_viewsource');
78-
if (this.props.onFinished) this.props.onFinished();
78+
this.closeMenu();
7979
},
8080

8181
onViewClearSourceClick: function() {
@@ -84,7 +84,7 @@ module.exports = React.createClass({
8484
// FIXME: _clearEvent is private
8585
content: this.props.mxEvent._clearEvent,
8686
}, 'mx_Dialog_viewsource');
87-
if (this.props.onFinished) this.props.onFinished();
87+
this.closeMenu();
8888
},
8989

9090
onRedactClick: function() {
@@ -106,12 +106,12 @@ module.exports = React.createClass({
106106
}).done();
107107
},
108108
}, 'mx_Dialog_confirmredact');
109-
if (this.props.onFinished) this.props.onFinished();
109+
this.closeMenu();
110110
},
111111

112112
onCancelSendClick: function() {
113113
Resend.removeFromQueue(this.props.mxEvent);
114-
if (this.props.onFinished) this.props.onFinished();
114+
this.closeMenu();
115115
},
116116

117117
onForwardClick: function() {
@@ -130,7 +130,7 @@ module.exports = React.createClass({
130130
if (this.props.eventTileOps) {
131131
this.props.eventTileOps.unhideWidget();
132132
}
133-
if (this.props.onFinished) this.props.onFinished();
133+
this.closeMenu();
134134
},
135135

136136
onQuoteClick: function() {
@@ -139,6 +139,7 @@ module.exports = React.createClass({
139139
action: 'quote',
140140
event: this.props.mxEvent,
141141
});
142+
this.closeMenu();
142143
},
143144

144145
render: function() {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
@import "./matrix-react-sdk/views/rooms/_SearchableEntityList.scss";
5757
@import "./matrix-react-sdk/views/rooms/_TabCompleteBar.scss";
5858
@import "./matrix-react-sdk/views/rooms/_TopUnreadMessagesBar.scss";
59+
@import "./matrix-react-sdk/views/rooms/_AppsDrawer.scss";
5960
@import "./matrix-react-sdk/views/settings/_DevicesPanel.scss";
6061
@import "./matrix-react-sdk/views/settings/_IntegrationsManager.scss";
6162
@import "./matrix-react-sdk/views/voip/_CallView.scss";

‎src/skins/vector/css/matrix-react-sdk/views/messages/_MEmoteBody.scss‎

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

17+
.mx_MEmoteBody {
18+
white-space: pre-wrap;
19+
}
20+
1721
.mx_MEmoteBody_sender {
1822
cursor: pointer;
1923
}
Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
/*
2+
Copyright 2015, 2016 OpenMarket Ltd
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_AppsDrawer {
18+
}
19+
20+
.mx_AppsContainer {
21+
display: flex;
22+
flex-direction: row;
23+
align-items: center;
24+
}
25+
26+
.mx_AddWidget_button {
27+
order: 2;
28+
cursor: pointer;
29+
padding-right: 12px;
30+
padding: 0;
31+
margin: 0 0 5px 0;
32+
color: $accent-color;
33+
font-size: 12px;
34+
}
35+
36+
.mx_SetAppURLDialog_input {
37+
border-radius: 3px;
38+
border: 1px solid $input-border-color;
39+
padding: 9px;
40+
color: $primary-hairline-color;
41+
background-color: $primary-bg-color;
42+
font-size: 15px;
43+
}
44+
45+
.mx_AppTile {
46+
width: 50%;
47+
margin: 0 5px 2px 0;
48+
border: 1px solid $primary-hairline-color;
49+
border-radius: 2px;
50+
// height: 350px;
51+
// display: inline-block;
52+
}
53+
54+
.mx_AppTileFullWidth {
55+
width: 100%;
56+
margin: 0;
57+
padding: 0;
58+
border: 1px solid $primary-hairline-color;
59+
border-radius: 2px;
60+
// height: 350px;
61+
// display: inline-block;
62+
}
63+
64+
.mx_AppTileMenuBar {
65+
// height: 15px;
66+
margin: 0;
67+
padding: 2px 10px;
68+
// background-color: $e2e-verified-color;
69+
border-bottom: 1px solid $primary-hairline-color;
70+
font-size: 10px;
71+
}
72+
73+
.mx_AppTileMenuBarWidgets {
74+
float: right;
75+
}
76+
.mx_AppTileMenuBarWidget {
77+
// pointer-events: none;
78+
cursor: pointer;
79+
}
80+
81+
.mx_AppTileBody iframe {
82+
width: 100%;
83+
height: 350px;
84+
overflow: hidden;
85+
border: none;
86+
padding: 0;
87+
margin: 0;
88+
display: block;
89+
}
90+
91+
.mx_CloseAppWidget {
92+
}
93+
94+
.mx_AppTileMenuBarWidgetPadding {
95+
margin-right: 5px;
96+
}
97+
98+
.mx_AppIconTile {
99+
background-color: $lightbox-bg-color;
100+
border: 1px solid rgba(0, 0, 0, 0);
101+
width: 200px;
102+
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
103+
transition: 0.3s;
104+
border-radius: 3px;
105+
margin: 5px;
106+
display: inline-block;
107+
}
108+
109+
.mx_AppIconTile.mx_AppIconTile_active {
110+
color: $accent-color;
111+
border-color: $accent-color;
112+
}
113+
114+
.mx_AppIconTile:hover {
115+
border: 1px solid $accent-color;
116+
box-shadow: 0 0 10px 5px rgba(200,200,200,0.5);
117+
}
118+
119+
.mx_AppIconTile_content {
120+
padding: 2px 16px;
121+
height: 60px;
122+
overflow: hidden;
123+
}
124+
125+
.mx_AppIconTile_content h4 {
126+
margin-top: 5px;
127+
margin-bottom: 2px;
128+
}
129+
130+
.mx_AppIconTile_content p {
131+
margin-top: 0;
132+
margin-bottom: 5px;
133+
font-size: smaller;
134+
}
135+
136+
.mx_AppIconTile_image {
137+
padding: 10px;
138+
width: 75%;
139+
max-width:100px;
140+
max-height:100px;
141+
width: auto;
142+
height: auto;
143+
}
144+
145+
.mx_AppIconTile_imageContainer {
146+
text-align: center;
147+
width: 100%;
148+
background-color: white;
149+
border-radius: 3px 3px 0 0;
150+
height: 155px;
151+
display: flex;
152+
justify-content: center;
153+
align-items: center;
154+
}
155+
156+
form.mx_Custom_Widget_Form div {
157+
margin-top: 10px;
158+
margin-bottom: 10px;
159+
}

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,29 @@
3838
.mx_Autocomplete_Completion_pill {
3939
border-radius: 17px;
4040
height: 34px;
41+
padding: 0px 5px;
4142
display: flex;
4243
user-select: none;
4344
cursor: pointer;
4445
align-items: center;
4546
color: $primary-fg-color;
4647
}
4748

48-
.mx_Autocomplete_Completion_pill * {
49+
.mx_Autocomplete_Completion_pill > * {
4950
margin: 0 3px;
5051
}
5152

53+
.mx_Autocomplete_provider_name,
54+
.mx_Autocomplete_Completion_title,
55+
.mx_Autocomplete_Completion_subtitle,
56+
.mx_Autocomplete_Completion_description {
57+
/* Ellipsis for long names/subtitles/descriptions*/
58+
max-width: 150px;
59+
white-space: nowrap;
60+
overflow: hidden;
61+
text-overflow: ellipsis;
62+
}
63+
5264
/* container for pill-style completions */
5365
.mx_Autocomplete_Completion_container_pill {
5466
margin: 12px;

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ limitations under the License.
128128
.mx_MessageComposer_upload,
129129
.mx_MessageComposer_hangup,
130130
.mx_MessageComposer_voicecall,
131-
.mx_MessageComposer_videocall {
131+
.mx_MessageComposer_videocall,
132+
.mx_MessageComposer_apps {
132133
/*display: table-cell;*/
133134
/*vertical-align: middle;*/
134135
/*padding-left: 10px;*/
@@ -140,7 +141,8 @@ limitations under the License.
140141
.mx_MessageComposer_upload object,
141142
.mx_MessageComposer_hangup object,
142143
.mx_MessageComposer_voicecall object,
143-
.mx_MessageComposer_videocall object {
144+
.mx_MessageComposer_videocall object,
145+
.mx_MessageComposer_apps object {
144146
pointer-events: none;
145147
}
146148

‎src/skins/vector/img/edit.svg‎

Lines changed: 13 additions & 0 deletions
Loading
Lines changed: 24 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)