commit: b110cc542fe9dc853afc01dfa97586e6b2dd9f2a
parent: cdacac8c6cbd85ed6e8a1cac8ce6fa5994094c7c
Author: Daggertooth <dev@monsterpit.net>
Date: Sat, 30 Sep 2017 17:35:49 -0500
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.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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') {