From 376bbed97c5d0e46b968e0f3f508564dbe6bede6 Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Tue, 24 Jan 2017 22:22:36 -0500 Subject: [PATCH] Fix styling of normal text links Due to recent changes, they were appearing as text buttons --- js/component/file-actions.js | 4 ++-- js/component/file-tile.js | 2 +- js/component/link.js | 2 +- js/component/menu.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/js/component/file-actions.js b/js/component/file-actions.js index 053aae535..7dba036e0 100644 --- a/js/component/file-actions.js +++ b/js/component/file-actions.js @@ -185,7 +185,7 @@ let FileActionsRow = React.createClass({ ); } else { - linkBlock = ; + linkBlock = ; } return ( @@ -266,7 +266,7 @@ export let FileActions = React.createClass({ body="The content on LBRY is hosted by its users. It appears there are no users connected that have this file at the moment." />
- +
) } diff --git a/js/component/file-tile.js b/js/component/file-tile.js index e3a4b83d1..922d21d10 100644 --- a/js/component/file-tile.js +++ b/js/component/file-tile.js @@ -144,7 +144,7 @@ export let FileTileStream = React.createClass({ ?

This content is Not Safe For Work. - To view adult content, please change your . + To view adult content, please change your .

: null} diff --git a/js/component/link.js b/js/component/link.js index d1a920346..6b2f890bc 100644 --- a/js/component/link.js +++ b/js/component/link.js @@ -28,7 +28,7 @@ export let Link = React.createClass({ /* The way the class name is generated here is a mess -- refactor */ const className = (this.props.className || '') + - (!this.props.className && !this.props.button ? 'button-block button-text' : '') + // Non-button links get the same look as text buttons + (!this.props.className && !this.props.button ? 'button-text' : '') + // Non-button links get the same look as text buttons (this.props.button ? 'button-block button-' + this.props.button : '') + (this.props.disabled ? ' disabled' : ''); diff --git a/js/component/menu.js b/js/component/menu.js index c3c10047f..cfa6b9df7 100644 --- a/js/component/menu.js +++ b/js/component/menu.js @@ -68,7 +68,7 @@ export let DropDownMenu = React.createClass({ } return (
- this._menuButton = span} icon="icon-ellipsis-v" onClick={this.onMenuIconClick} /> + this._menuButton = span} button="text" icon="icon-ellipsis-v" onClick={this.onMenuIconClick} /> {this.state.menuOpen ?
this._menuDiv = div} className="menu"> {this.props.children}