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

Commit 3b7b66c

Browse files
committed
Change out caption for email invite suggestions and stack vertically
1 parent 2064cf8 commit 3b7b66c

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

res/css/views/dialogs/_InviteDialog.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ limitations under the License.
3737
}
3838

3939
// Mostly copied from AddressPickerDialog; overrides bunch of our default text input styles
40-
input, input:focus {
40+
> input[type="text"] {
4141
margin: 6px 0 !important;
4242
height: 24px;
4343
line-height: $font-24px;
@@ -140,6 +140,10 @@ limitations under the License.
140140
}
141141
}
142142

143+
.mx_InviteDialog_roomTile_nameStack {
144+
display: inline-block;
145+
}
146+
143147
.mx_InviteDialog_roomTile_name {
144148
font-weight: 600;
145149
font-size: $font-14px;

src/components/views/dialogs/InviteDialog.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,11 +280,17 @@ class DMRoomTile extends React.PureComponent {
280280
</span>
281281
);
282282

283+
const caption = this.props.member.isEmail
284+
? _t("Invite by email")
285+
: this._highlightName(this.props.member.userId);
286+
283287
return (
284288
<div className='mx_InviteDialog_roomTile' onClick={this._onClick}>
285289
{stackedAvatar}
286-
<span className='mx_InviteDialog_roomTile_name'>{this._highlightName(this.props.member.name)}</span>
287-
<span className='mx_InviteDialog_roomTile_userId'>{this._highlightName(this.props.member.userId)}</span>
290+
<span className="mx_InviteDialog_roomTile_nameStack">
291+
<div className='mx_InviteDialog_roomTile_name'>{this._highlightName(this.props.member.name)}</div>
292+
<div className='mx_InviteDialog_roomTile_userId'>{caption}</div>
293+
</span>
288294
{timestamp}
289295
</div>
290296
);

0 commit comments

Comments
 (0)