diff --git a/js/component/file-actions.js b/js/component/file-actions.js
index 9dc70c476..e793e8f1f 100644
--- a/js/component/file-actions.js
+++ b/js/component/file-actions.js
@@ -178,7 +178,7 @@ export let FileActions = React.createClass({
const
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...',
- labelWithIcon = {label};
+ labelWithIcon = {label};
linkBlock =
diff --git a/js/component/link.js b/js/component/link.js
index b9ce82e18..56429aefc 100644
--- a/js/component/link.js
+++ b/js/component/link.js
@@ -34,23 +34,19 @@ export let Link = React.createClass({
if (this.props.children) { // Custom content
content = this.props.children;
} else {
- content = (
-
- {'icon' in this.props
- ?
- : null}
- {this.props.label}
- {'badge' in this.props
- ? {this.props.badge}
- : null}
-
- );
+ content = [
+ 'icon' in this.props ?
: null,
+
{this.props.label},
+ 'badge' in this.props ?
{this.props.badge} : null,
+ ];
}
return (
- {content}
+ {this.props.button
+ ? {content}
+ : content}
);
}
diff --git a/scss/_gui.scss b/scss/_gui.scss
index 7a464a794..a184f6ace 100644
--- a/scss/_gui.scss
+++ b/scss/_gui.scss
@@ -177,27 +177,26 @@ input[type="text"], input[type="search"]
cursor: pointer;
}
+.button__content {
+ margin: 0 $padding-button;
+}
+
.button-primary
{
color: white;
background-color: $color-primary;
box-shadow: $default-box-shadow;
- padding: 0 $padding-button;
}
.button-alt
{
background-color: $color-bg-alt;
box-shadow: $default-box-shadow;
- padding: 0 $padding-button;
}
-.button-cancel
-{
- padding: 0 $padding-button;
-}
.button-text
{
@include text-link();
+ display: inline-block;
}
.button-text-help
{
diff --git a/scss/component/_file-actions.scss b/scss/component/_file-actions.scss
index e17ed80d3..5117b11f5 100644
--- a/scss/component/_file-actions.scss
+++ b/scss/component/_file-actions.scss
@@ -9,15 +9,11 @@ $color-download: #444;
.file-actions__download-status-bar
{
- padding-right: $padding-button;
- padding-left: $padding-button;
position: relative;
color: $color-download;
}
.file-actions__download-status-bar-overlay
{
- padding-right: $padding-button;
- padding-left: $padding-button;
background: $color-download;
color: white;
position: absolute;