diff options
author | Luc Didry <ldidry@users.noreply.github.com> | 2017-04-14 13:22:56 +0200 |
---|---|---|
committer | Eugen <eugen@zeonfederated.com> | 2017-04-14 13:22:56 +0200 |
commit | fa89deb4eb0fc3bc6a28fb78e212829f20336001 (patch) | |
tree | 02b2ceb7247cec1ee15c5f9bffb2d6db1e528829 /app/assets/javascripts/components | |
parent | 26a892dd90166cac5dd27ebe94c6d2f6acc68b9c (diff) |
Add title attribute to URLs in statuses (#1755)
Since URLs in statuses are truncated, it would be pleasant to see the full URL when hovering the URL (like on twitter, yes).
Diffstat (limited to 'app/assets/javascripts/components')
-rw-r--r-- | app/assets/javascripts/components/components/status_content.jsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/components/status_content.jsx b/app/assets/javascripts/components/components/status_content.jsx index c7eefcaf5..33e407e43 100644 --- a/app/assets/javascripts/components/components/status_content.jsx +++ b/app/assets/javascripts/components/components/status_content.jsx @@ -44,6 +44,7 @@ const StatusContent = React.createClass({ } else { link.setAttribute('target', '_blank'); link.setAttribute('rel', 'noopener'); + link.setAttribute('title', link.href); } } }, |