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

Commit

Permalink
Fix #1651 Add a share icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
fzzzy committed Oct 18, 2016
1 parent ea304ed commit 2cd37a5
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/views/frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,8 @@ class Frame extends React.Component {
</div>
<div className="more-shot-actions right">
<button className="button primary" id="toggle-share" onClick={ this.onClickShareButton.bind(this) }>
Share
<img className="share-icon" src={ this.props.staticLink("img/share.svg")} />
<span>Share</span>
</button>
<a className="button secondary" href={ clipUrl } onClick={ this.onClickDownload.bind(this) }
title="Download the shot image" download={ `${clipFilename}.png` }>
Expand Down
18 changes: 18 additions & 0 deletions static/css/frame.scss
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,24 @@
}
}

#toggle-share {
img {
height: 24px;
width: 24px;
background-color: white;
border-radius: 4px;
margin: 0;
margin-right: 10px;
vertical-align: middle;
display: inline-block;
}

span {
vertical-align: middle;
display: inline-block;
}
}

.link-button {
cursor: pointer;
color: $black;
Expand Down
12 changes: 12 additions & 0 deletions static/img/share.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2cd37a5

Please sign in to comment.