From b7adc597e232f95dea200a6f49bf5d17c1af102c Mon Sep 17 00:00:00 2001 From: btzr-io Date: Thu, 20 Jun 2019 19:00:52 -0600 Subject: [PATCH] fix styles --- src/ui/component/claimLink/view.jsx | 27 ++++++++++++++---- src/ui/component/externalLink/view.jsx | 2 +- src/ui/component/previewLink/view.jsx | 29 ++++++++++---------- src/ui/component/uriIndicator/view.jsx | 8 ++++-- src/ui/scss/component/_markdown-preview.scss | 12 +++++--- 5 files changed, 51 insertions(+), 27 deletions(-) diff --git a/src/ui/component/claimLink/view.jsx b/src/ui/component/claimLink/view.jsx index f69361cc2..889bf7add 100644 --- a/src/ui/component/claimLink/view.jsx +++ b/src/ui/component/claimLink/view.jsx @@ -7,9 +7,11 @@ import { parseURI } from 'lbry-redux'; type Props = { uri: string, + link?: boolean, title: ?string, claim: StreamClaim, children: React.Node, + className: ?string, thumbnail: ?string, autoEmbed: ?boolean, description: ?string, @@ -25,6 +27,7 @@ type Props = { class ClaimLink extends React.Component { static defaultProps = { href: null, + link: false, title: null, thumbnail: null, autoEmbed: false, @@ -64,7 +67,19 @@ class ClaimLink extends React.Component { } render() { - const { uri, claim, title, description, thumbnail, currentTheme, autoEmbed, children, isResolvingUri } = this.props; + const { + uri, + link, + claim, + title, + className, + description, + thumbnail, + currentTheme, + autoEmbed, + children, + isResolvingUri, + } = this.props; const isUnresolved = (!isResolvingUri && !claim) || !claim; const isBlacklisted = this.isClaimBlackListed(); @@ -77,13 +92,13 @@ class ClaimLink extends React.Component { const isChannelClaim = isChannel && !path; const showPreview = autoEmbed === true && !isUnresolved; - const link = ( + const innerContent = (