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

Commit

Permalink
Remove right margin on img only download icon. (#3947)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenba committed Jan 8, 2018
1 parent 86fb1ff commit b576350
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions server/src/pages/shot/view.js
Expand Up @@ -412,9 +412,11 @@ class Body extends React.Component {
<Localized id="shotPageDownloadShot">
<a className="button primary" href={ this.props.downloadUrl } onClick={ this.onClickDownload.bind(this) }
title="Download the shot image">
<img id="downloadIcon" src={ this.props.staticLink("/static/img/download-white.svg") } width="20" height="20"/>
{ (noText) ? <span className="download-text"></span>
: <Localized id="shotPageDownload"><span className="download-text">Download</span></Localized> }
<img id="downloadIcon" style={noText ? {marginRight: "0"} : {}}
src={this.props.staticLink("/static/img/download-white.svg")}
width="20" height="20" />
{ !noText &&
<Localized id="shotPageDownload"><span className="download-text">Download</span></Localized> }
</a>
</Localized>
</div>
Expand Down

0 comments on commit b576350

Please sign in to comment.