Fix padding issue with download progress bar

Label was not wrapped in span, so the wrong styles were applying
This commit is contained in:
Alex Liebowitz 2017-01-23 23:06:29 -05:00
parent ef393ca360
commit 13886f4156

View file

@ -176,7 +176,7 @@ let FileActionsRow = React.createClass({
const const
progress = this.state.fileInfo ? this.state.fileInfo.written_bytes / this.state.fileInfo.total_bytes * 100 : 0, progress = this.state.fileInfo ? this.state.fileInfo.written_bytes / this.state.fileInfo.total_bytes * 100 : 0,
label = this.state.fileInfo ? progress.toFixed(0) + '% complete' : 'Connecting...', label = this.state.fileInfo ? progress.toFixed(0) + '% complete' : 'Connecting...',
labelWithIcon = <span className="button__content"><Icon icon="icon-download" />{label}</span>; labelWithIcon = <span className="button__content"><Icon icon="icon-download" /><span>{label}</span></span>;
linkBlock = ( linkBlock = (
<div className="faux-button-block file-actions__download-status-bar"> <div className="faux-button-block file-actions__download-status-bar">