From 32c512dbfee7a8bd115539119011aa7a106d1b5a Mon Sep 17 00:00:00 2001
From: Michael Telatynski <7t3chguy@gmail.com>
Date: Tue, 28 Apr 2020 17:49:10 +0100
Subject: [PATCH 1/2] Fix internal link styling in Security Settings
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
---
.../settings/tabs/user/_SecurityUserSettingsTab.scss | 8 ++++++++
.../views/settings/tabs/user/SecurityUserSettingsTab.js | 8 ++++----
2 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/res/css/views/settings/tabs/user/_SecurityUserSettingsTab.scss b/res/css/views/settings/tabs/user/_SecurityUserSettingsTab.scss
index b5a6693006..849979f444 100644
--- a/res/css/views/settings/tabs/user/_SecurityUserSettingsTab.scss
+++ b/res/css/views/settings/tabs/user/_SecurityUserSettingsTab.scss
@@ -55,3 +55,11 @@ limitations under the License.
.mx_SecurityUserSettingsTab_ignoredUser .mx_AccessibleButton {
margin-right: 10px;
}
+
+.mx_SecurityUserSettingsTab {
+ .mx_SettingsTab_section {
+ .mx_AccessibleButton_kind_link {
+ padding: 0;
+ }
+ }
+}
diff --git a/src/components/views/settings/tabs/user/SecurityUserSettingsTab.js b/src/components/views/settings/tabs/user/SecurityUserSettingsTab.js
index 1a74bbdf93..a4336a81f3 100644
--- a/src/components/views/settings/tabs/user/SecurityUserSettingsTab.js
+++ b/src/components/views/settings/tabs/user/SecurityUserSettingsTab.js
@@ -112,7 +112,7 @@ export default class SecurityUserSettingsTab extends React.Component {
};
_onGoToUserProfileClick = () => {
- // close the settings dialog & let the default action run (ie. navigate to the link)
+ window.location.href = "#/user/" + MatrixClientPeg.get().getUserId();
this.props.closeSettingsFn();
}
@@ -327,9 +327,9 @@ export default class SecurityUserSettingsTab extends React.Component {
"Manage the names of and sign out of your sessions below or " +
"verify them in your User Profile.", {},
{
- a: sub => {sub},
+ a: sub =>
+ {sub}
+ ,
},
)}
From a63dd664a1b18f55829fbb878b0b45eb19f9b838 Mon Sep 17 00:00:00 2001
From: Michael Telatynski <7t3chguy@gmail.com>
Date: Tue, 28 Apr 2020 17:57:32 +0100
Subject: [PATCH 2/2] fix font-size
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
---
res/css/views/settings/tabs/user/_SecurityUserSettingsTab.scss | 1 +
1 file changed, 1 insertion(+)
diff --git a/res/css/views/settings/tabs/user/_SecurityUserSettingsTab.scss b/res/css/views/settings/tabs/user/_SecurityUserSettingsTab.scss
index 849979f444..8700f8747d 100644
--- a/res/css/views/settings/tabs/user/_SecurityUserSettingsTab.scss
+++ b/res/css/views/settings/tabs/user/_SecurityUserSettingsTab.scss
@@ -60,6 +60,7 @@ limitations under the License.
.mx_SettingsTab_section {
.mx_AccessibleButton_kind_link {
padding: 0;
+ font-size: inherit;
}
}
}