about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorShaun Gillies <me@shaungillies.net>2018-07-01 03:16:13 +0100
committerEugen Rochko <eugen@zeonfederated.com>2018-07-01 04:16:13 +0200
commitac82c9380fd3d6e48496d86153a03c879b5cf753 (patch)
treedc159a72606ed8a3aa2f0b2c6501afaf6057a43f /app/javascript
parent2092d5c0ad099e8f60eb001ee0cd647fc759aefc (diff)
Display full username in tooltip on search and autosuggest #7478 (#7920)
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/mastodon/components/account.js2
-rw-r--r--app/javascript/mastodon/features/compose/components/autosuggest_account.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/mastodon/components/account.js b/app/javascript/mastodon/components/account.js
index a3642e61d..8e6aa9d92 100644
--- a/app/javascript/mastodon/components/account.js
+++ b/app/javascript/mastodon/components/account.js
@@ -101,7 +101,7 @@ export default class Account extends ImmutablePureComponent {
     return (
       <div className='account'>
         <div className='account__wrapper'>
-          <Permalink key={account.get('id')} className='account__display-name' href={account.get('url')} to={`/accounts/${account.get('id')}`}>
+          <Permalink key={account.get('id')} className='account__display-name' title={account.get('acct')} href={account.get('url')} to={`/accounts/${account.get('id')}`}>
             <div className='account__avatar-wrapper'><Avatar account={account} size={36} /></div>
             <DisplayName account={account} />
           </Permalink>
diff --git a/app/javascript/mastodon/features/compose/components/autosuggest_account.js b/app/javascript/mastodon/features/compose/components/autosuggest_account.js
index e7de3716b..1451be0e6 100644
--- a/app/javascript/mastodon/features/compose/components/autosuggest_account.js
+++ b/app/javascript/mastodon/features/compose/components/autosuggest_account.js
@@ -14,7 +14,7 @@ export default class AutosuggestAccount extends ImmutablePureComponent {
     const { account } = this.props;
 
     return (
-      <div className='autosuggest-account'>
+      <div className='autosuggest-account' title={account.get('acct')}>
         <div className='autosuggest-account-icon'><Avatar account={account} size={18} /></div>
         <DisplayName account={account} />
       </div>