From: Daggertooth Date: Sat, 30 Sep 2017 22:35:49 +0000 (-0500) Subject: Add image descriptions to title attribute to view on mouse hover/long-press. (#5137) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=b110cc542fe9dc853afc01dfa97586e6b2dd9f2a;p=mastodon.git 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. --- 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' > - {attachment.get('description')} + {attachment.get('description')} ); } else if (attachment.get('type') === 'gifv') {