diff --git a/res/css/_components.pcss b/res/css/_components.pcss index 94153b2e89..85ffa5c238 100644 --- a/res/css/_components.pcss +++ b/res/css/_components.pcss @@ -322,7 +322,6 @@ @import "./views/settings/_CrossSigningPanel.pcss"; @import "./views/settings/_CryptographyPanel.pcss"; @import "./views/settings/_DevicesPanel.pcss"; -@import "./views/settings/_EmailAddresses.pcss"; @import "./views/settings/_FontScalingPanel.pcss"; @import "./views/settings/_ImageSizePanel.pcss"; @import "./views/settings/_IntegrationManager.pcss"; diff --git a/res/css/views/settings/_EmailAddresses.pcss b/res/css/views/settings/_EmailAddresses.pcss deleted file mode 100644 index f401c64484..0000000000 --- a/res/css/views/settings/_EmailAddresses.pcss +++ /dev/null @@ -1,32 +0,0 @@ -/* -Copyright 2019 New Vector Ltd -Copyright 2019 The Matrix.org Foundation C.I.C. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -.mx_ExistingEmailAddress { - display: flex; - align-items: center; - margin-bottom: 5px; -} - -.mx_ExistingEmailAddress_email, -.mx_ExistingEmailAddress_promptText { - flex: 1; - margin-right: 10px; -} - -.mx_ExistingEmailAddress_confirmBtn { - margin-left: 5px; -} diff --git a/res/css/views/settings/_PhoneNumbers.pcss b/res/css/views/settings/_PhoneNumbers.pcss index d64d1a6333..c0ad9d7a2f 100644 --- a/res/css/views/settings/_PhoneNumbers.pcss +++ b/res/css/views/settings/_PhoneNumbers.pcss @@ -15,23 +15,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -.mx_ExistingPhoneNumber { - display: flex; - align-items: center; - margin-bottom: 5px; -} - -.mx_ExistingPhoneNumber_address, -.mx_ExistingPhoneNumber_promptText { - flex: 1; - margin-right: 10px; -} - -.mx_ExistingPhoneNumber_confirmBtn { - margin-left: 5px; -} - -.mx_ExistingPhoneNumber_verification { +.mx_GeneralUserSettingsTab_discovery_existing_verification { display: inline-flex; align-items: center; diff --git a/res/css/views/settings/tabs/user/_GeneralUserSettingsTab.pcss b/res/css/views/settings/tabs/user/_GeneralUserSettingsTab.pcss index d48314b438..89015df3b6 100644 --- a/res/css/views/settings/tabs/user/_GeneralUserSettingsTab.pcss +++ b/res/css/views/settings/tabs/user/_GeneralUserSettingsTab.pcss @@ -37,12 +37,27 @@ limitations under the License. .mx_GeneralUserSettingsTab_accountSection .mx_EmailAddresses, .mx_GeneralUserSettingsTab_accountSection .mx_PhoneNumbers, -.mx_GeneralUserSettingsTab_discovery .mx_ExistingEmailAddress, -.mx_GeneralUserSettingsTab_discovery .mx_ExistingPhoneNumber, +.mx_GeneralUserSettingsTab_discovery .mx_GeneralUserSettingsTab_discovery_existing, .mx_GeneralUserSettingsTab_languageInput { margin-inline-end: var(--SettingsTab_fullWidthField-margin-inline-end); } +.mx_GeneralUserSettingsTab_discovery_existing { + display: flex; + align-items: center; + margin-bottom: 5px; +} + +.mx_GeneralUserSettingsTab_discovery_existing_address, +.mx_GeneralUserSettingsTab_discovery_existing_promptText { + flex: 1; + margin-right: 10px; +} + +.mx_GeneralUserSettingsTab_discovery_existing_button { + margin-left: 5px; +} + .mx_GeneralUserSettingsTab_warningIcon { vertical-align: middle; } diff --git a/src/components/views/settings/account/EmailAddresses.tsx b/src/components/views/settings/account/EmailAddresses.tsx index c90e1c2768..08e014c65b 100644 --- a/src/components/views/settings/account/EmailAddresses.tsx +++ b/src/components/views/settings/account/EmailAddresses.tsx @@ -94,21 +94,21 @@ export class ExistingEmailAddress extends React.Component - +
+ {_t("Remove %(email)s?", { email: this.props.email.address })} {_t("Remove")} {_t("Cancel")} @@ -117,8 +117,8 @@ export class ExistingEmailAddress extends React.Component - {this.props.email.address} +
+ {this.props.email.address} {_t("Remove")} diff --git a/src/components/views/settings/account/PhoneNumbers.tsx b/src/components/views/settings/account/PhoneNumbers.tsx index 113baa4639..ede650642d 100644 --- a/src/components/views/settings/account/PhoneNumbers.tsx +++ b/src/components/views/settings/account/PhoneNumbers.tsx @@ -89,21 +89,21 @@ export class ExistingPhoneNumber extends React.Component - +
+ {_t("Remove %(phone)s?", { phone: this.props.msisdn.address })} {_t("Remove")} {_t("Cancel")} @@ -112,8 +112,10 @@ export class ExistingPhoneNumber extends React.Component - +{this.props.msisdn.address} +
+ + +{this.props.msisdn.address} + {_t("Remove")} diff --git a/src/components/views/settings/discovery/EmailAddresses.tsx b/src/components/views/settings/discovery/EmailAddresses.tsx index 7c524266a4..f11222af48 100644 --- a/src/components/views/settings/discovery/EmailAddresses.tsx +++ b/src/components/views/settings/discovery/EmailAddresses.tsx @@ -217,7 +217,7 @@ export class EmailAddress extends React.Component {_t("Verify the link in your inbox")} @@ -239,7 +239,7 @@ export class EmailAddress extends React.Component @@ -249,8 +249,8 @@ export class EmailAddress extends React.Component - {address} +
+ {address} {status}
); diff --git a/src/components/views/settings/discovery/PhoneNumbers.tsx b/src/components/views/settings/discovery/PhoneNumbers.tsx index 16f53385aa..9ae1719259 100644 --- a/src/components/views/settings/discovery/PhoneNumbers.tsx +++ b/src/components/views/settings/discovery/PhoneNumbers.tsx @@ -222,7 +222,7 @@ export class PhoneNumber extends React.Component + {_t("Please enter verification code sent via text.")}
@@ -243,7 +243,7 @@ export class PhoneNumber extends React.Component @@ -253,7 +253,7 @@ export class PhoneNumber extends React.Component @@ -263,8 +263,8 @@ export class PhoneNumber extends React.Component - +{address} +
+ +{address} {status}
);