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.
th-downstream
Daggertooth 7 years ago committed by Eugen Rochko
parent 51f48c8960
commit 43d1281d76

@ -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') {

Loading…
Cancel
Save