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.
pull/5153/merge
Daggertooth 2017-09-30 17:35:49 -05:00 committed by Eugen Rochko
parent cdacac8c6c
commit b110cc542f
1 changed files with 1 additions and 1 deletions

View File

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