diff options
author | Daggertooth <dev@monsterpit.net> | 2017-09-30 17:35:49 -0500 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-10-01 00:35:49 +0200 |
commit | b110cc542fe9dc853afc01dfa97586e6b2dd9f2a (patch) | |
tree | 6c0d6bfe22fb2d1fd4d95fe1f20c0a2dc603154c | |
parent | cdacac8c6cbd85ed6e8a1cac8ce6fa5994094c7c (diff) |
Add image descriptions to title attribute to view on mouse hover/long-press. (#5137)
* Add image descriptions to `title` attribute to view on mouse hover/long-press. * Too many title properties may spoil the broth.
-rw-r--r-- | app/javascript/mastodon/components/media_gallery.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/components/media_gallery.js b/app/javascript/mastodon/components/media_gallery.js index e7f14a7db..fb71d8c5c 100644 --- a/app/javascript/mastodon/components/media_gallery.js +++ b/app/javascript/mastodon/components/media_gallery.js @@ -135,7 +135,7 @@ class Item extends React.PureComponent { onClick={this.handleClick} target='_blank' > - <img src={previewUrl} srcSet={srcSet} sizes={sizes} alt={attachment.get('description')} /> + <img src={previewUrl} srcSet={srcSet} sizes={sizes} alt={attachment.get('description')} title={attachment.get('description')} /> </a> ); } else if (attachment.get('type') === 'gifv') { |