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

Commit

Permalink
Update existing 3PID management UX
Browse files Browse the repository at this point in the history
This tweaks the appearance of the existing 3PID management UX to use a different
style for the remove button. This styling will more closely match the soon to be
added 3PID discovery settings.

Part of element-hq/element-web#10159
  • Loading branch information
jryans committed Aug 5, 2019
1 parent ab05d8c commit 11f2b43
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
10 changes: 5 additions & 5 deletions res/css/views/settings/_EmailAddresses.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ limitations under the License.
*/

.mx_ExistingEmailAddress {
display: flex;
align-items: center;
margin-bottom: 5px;
}

Expand All @@ -24,14 +26,12 @@ limitations under the License.
vertical-align: middle;
}

.mx_ExistingEmailAddress_email {
vertical-align: middle;
}

.mx_ExistingEmailAddress_email,
.mx_ExistingEmailAddress_promptText {
flex: 1;
margin-right: 10px;
}

.mx_ExistingEmailAddress_confirmBtn {
margin-right: 5px;
margin-left: 5px;
}
10 changes: 5 additions & 5 deletions res/css/views/settings/_PhoneNumbers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ limitations under the License.
*/

.mx_ExistingPhoneNumber {
display: flex;
align-items: center;
margin-bottom: 5px;
}

Expand All @@ -24,16 +26,14 @@ limitations under the License.
vertical-align: middle;
}

.mx_ExistingPhoneNumber_address {
vertical-align: middle;
}

.mx_ExistingPhoneNumber_address,
.mx_ExistingPhoneNumber_promptText {
flex: 1;
margin-right: 10px;
}

.mx_ExistingPhoneNumber_confirmBtn {
margin-right: 5px;
margin-left: 5px;
}

.mx_PhoneNumbers_input {
Expand Down
5 changes: 3 additions & 2 deletions src/components/views/settings/EmailAddresses.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,10 @@ export class ExistingEmailAddress extends React.Component {

return (
<div className="mx_ExistingEmailAddress">
<img src={require("../../../../res/img/feather-customised/cancel.svg")} width={14} height={14}
onClick={this._onRemove} className="mx_ExistingEmailAddress_delete" alt={_t("Remove")} />
<span className="mx_ExistingEmailAddress_email">{this.props.email.address}</span>
<AccessibleButton onClick={this._onRemove} kind="danger_sm">
{_t("Remove")}
</AccessibleButton>
</div>
);
}
Expand Down
5 changes: 3 additions & 2 deletions src/components/views/settings/PhoneNumbers.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,10 @@ export class ExistingPhoneNumber extends React.Component {

return (
<div className="mx_ExistingPhoneNumber">
<img src={require("../../../../res/img/feather-customised/cancel.svg")} width={14} height={14}
onClick={this._onRemove} className="mx_ExistingPhoneNumber_delete" alt={_t("Remove")} />
<span className="mx_ExistingPhoneNumber_address">+{this.props.msisdn.address}</span>
<AccessibleButton onClick={this._onRemove} kind="danger_sm">
{_t("Remove")}
</AccessibleButton>
</div>
);
}
Expand Down

0 comments on commit 11f2b43

Please sign in to comment.