Browse Source

Ensure correct rendering for profile links

lets-bump-hometown-to-mastodon-4.2
nachtjasmin 2 years ago
parent
commit
e14ae645d6
No known key found for this signature in database
  1. 1
      app/javascript/mastodon/features/account/components/header.jsx
  2. 7
      app/javascript/styles/hometown.scss

1
app/javascript/mastodon/features/account/components/header.jsx

@ -419,7 +419,6 @@ class Header extends ImmutablePureComponent {
<div className='account__header__tabs__name'>
<h1>
<span dangerouslySetInnerHTML={displayNameHtml} />
<a href={account.get('url')} target='_blank' rel='noopener noreferrer'><span dangerouslySetInnerHTML={displayNameHtml} /></a>{isRemote ? <span> <IconButton icon='external-link' size={14} onClick={this.handleDisplayNameClick} /></span> : null}
<small>
<span>@{acct}</span> {lockedIcon}

7
app/javascript/styles/hometown.scss

@ -1 +1,6 @@
// app/javascript/mastodon/features/account_timeline/components/header.jsx
// Because we provide a link to the profile instead of a plain <span>, we override
// the color to ensure it doesn't use the accent color.
.account__header__tabs__name a {
color: inherit;
}

Loading…
Cancel
Save