You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Merge pull request #4512 from matrix-org/t3chguy/cherry-pick/4
Fix internal link styling in Security Settings
This commit is contained in:
@@ -55,3 +55,12 @@ limitations under the License.
|
|||||||
.mx_SecurityUserSettingsTab_ignoredUser .mx_AccessibleButton {
|
.mx_SecurityUserSettingsTab_ignoredUser .mx_AccessibleButton {
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mx_SecurityUserSettingsTab {
|
||||||
|
.mx_SettingsTab_section {
|
||||||
|
.mx_AccessibleButton_kind_link {
|
||||||
|
padding: 0;
|
||||||
|
font-size: inherit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ export default class SecurityUserSettingsTab extends React.Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
_onGoToUserProfileClick = () => {
|
_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();
|
this.props.closeSettingsFn();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -299,9 +299,9 @@ export default class SecurityUserSettingsTab extends React.Component {
|
|||||||
"Manage the names of and sign out of your sessions below or " +
|
"Manage the names of and sign out of your sessions below or " +
|
||||||
"<a>verify them in your User Profile</a>.", {},
|
"<a>verify them in your User Profile</a>.", {},
|
||||||
{
|
{
|
||||||
a: sub => <a href={"#/user/" + MatrixClientPeg.get().getUserId()}
|
a: sub => <AccessibleButton kind="link" onClick={this._onGoToUserProfileClick}>
|
||||||
onClick={this._onGoToUserProfileClick}
|
{sub}
|
||||||
>{sub}</a>,
|
</AccessibleButton>,
|
||||||
},
|
},
|
||||||
)}
|
)}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user