Browse Source

Make handle more easily selectable on profile page (#21479)

* Make handle more easily selectable on profile page

* Wrap handle in a span

* Add `user-select: all` to span

* remove whitespace
closed-social-glitch-2
cadars 1 year ago
committed by GitHub
parent
commit
52a50c5e43
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions
  1. +3
    -1
      app/javascript/mastodon/features/account/components/header.js
  2. +4
    -0
      app/javascript/styles/mastodon/components.scss

+ 3
- 1
app/javascript/mastodon/features/account/components/header.js View File

@ -342,7 +342,9 @@ class Header extends ImmutablePureComponent {
<div className='account__header__tabs__name'>
<h1>
<span dangerouslySetInnerHTML={displayNameHtml} /> {badge}
<small>@{acct} {lockedIcon}</small>
<small>
<span>@{acct}</span> {lockedIcon}
</small>
</h1>
</div>

+ 4
- 0
app/javascript/styles/mastodon/components.scss View File

@ -7092,6 +7092,10 @@ noscript {
font-weight: 400;
overflow: hidden;
text-overflow: ellipsis;
span {
user-select: all;
}
}
}
}

Loading…
Cancel
Save