Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix #2056, put the text into the <img alt> so it'll get copied when y…
Browse files Browse the repository at this point in the history
…ou copy the image, and pasted if you paste in a text area
  • Loading branch information
ianb committed Jan 5, 2017
1 parent 7dd141d commit d017043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/pages/shot/view.js
Original file line number Diff line number Diff line change
@@ -65,7 +65,7 @@ class Clip extends React.Component {
node = null;

if (clip.image !== undefined) {
node = <img style={{height: "auto", width: clip.image.dimensions.x + "px", maxWidth: "100%"}} ref="clipImage" src={ clip.image.url } />;
node = <img style={{height: "auto", width: clip.image.dimensions.x + "px", maxWidth: "100%"}} ref="clipImage" src={ clip.image.url } alt={ clip.image.text } />;
}

let closeButton = null;

0 comments on commit d017043

Please sign in to comment.