Skip to content

Commit c5a52d8

Browse files
authored
Merge pull request element-hq#2198 from vector-im/wmwragg/multi-invite-bugfix
Wmwragg/multi invite bugfix
2 parents ec05d1b + efa574c commit c5a52d8

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

src/components/structures/RightPanel.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ module.exports = React.createClass({
165165
var FilePanel = sdk.getComponent('structures.FilePanel');
166166
var TintableSvg = sdk.getComponent("elements.TintableSvg");
167167
var buttonGroup;
168+
var inviteGroup;
168169
var panel;
169170

170171
var filesHighlight;
@@ -210,6 +211,14 @@ module.exports = React.createClass({
210211
{ notificationsHighlight }
211212
</div>
212213
</div>;
214+
215+
inviteGroup =
216+
<div className="mx_RightPanel_invite" onClick={ this.onInviteButtonClick } >
217+
<div className="mx_RightPanel_icon" >
218+
<TintableSvg src="img/icon-invite-people.svg" width="35" height="35" />
219+
</div>
220+
<div className="mx_RightPanel_message">Invite to this room</div>
221+
</div>;
213222
}
214223

215224
if (!this.props.collapsed) {
@@ -244,12 +253,7 @@ module.exports = React.createClass({
244253
</div>
245254
{ panel }
246255
<div className="mx_RightPanel_footer">
247-
<div className="mx_RightPanel_invite" >
248-
<div className="mx_RightPanel_icon" onClick={ this.onInviteButtonClick } >
249-
<TintableSvg src="img/icon-invite-people.svg" width="35" height="35" />
250-
</div>
251-
<div className="mx_RightPanel_message">Invite to this room</div>
252-
</div>
256+
{ inviteGroup }
253257
</div>
254258
</aside>
255259
);

src/skins/vector/css/matrix-react-sdk/views/dialogs/ChatInviteDialog.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ limitations under the License.
4444
padding-bottom: 1px;
4545
max-height: 150px;
4646
overflow-x: hidden;
47-
overflow-y: scroll;
47+
overflow-y: auto;
4848
}
4949

5050
.mx_ChatInviteDialog_error {

src/skins/vector/css/matrix-react-sdk/views/elements/AddressSelector.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ limitations under the License.
1919
background-color: #fff;
2020
width: 485px;
2121
max-height: 116px;
22-
overflow-y: scroll;
22+
overflow-y: auto;
2323
border-radius: 3px;
2424
background-color: #fff;
2525
border: solid 1px #76cfa6;

src/skins/vector/css/vector-web/structures/RightPanel.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ limitations under the License.
110110
color: #4A4A4A;
111111
padding-top: 13px;
112112
padding-left: 5px;
113+
cursor: pointer;
113114
}
114115

115116
.collapsed .mx_RightPanel_footer .mx_RightPanel_invite {
@@ -118,7 +119,6 @@ limitations under the License.
118119

119120
.mx_RightPanel_invite .mx_RightPanel_icon {
120121
display: inline-block;
121-
cursor: pointer;
122122
}
123123

124124
.mx_RightPanel_invite .mx_RightPanel_icon object {

0 commit comments

Comments
 (0)