From e6563f26b8dafb7d6247fae6a87df059f4a37464 Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Tue, 17 Jan 2017 05:50:38 -0500 Subject: [PATCH] Fix extra margin around Open and Download links --- js/component/link.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/component/link.js b/js/component/link.js index 56429aefc..4a80ee830 100644 --- a/js/component/link.js +++ b/js/component/link.js @@ -25,9 +25,10 @@ export let Link = React.createClass({ return null; } + /* The way the class name is generated here is a mess -- refactor */ + const className = (this.props.className || '') + (this.props.button ? ' button-block button-' + this.props.button : '') + - (!this.props.className && !this.props.button ? 'button-text' : '') + (this.props.disabled ? ' disabled' : ''); let content; @@ -44,7 +45,7 @@ export let Link = React.createClass({ return ( - {this.props.button + {('button' in this.props) && this.props.button != 'text' ? {content} : content}