diff --git a/src/renderer/component/fileCard/view.jsx b/src/renderer/component/fileCard/view.jsx
index 00a42eb29..a7ec6a5fa 100644
--- a/src/renderer/component/fileCard/view.jsx
+++ b/src/renderer/component/fileCard/view.jsx
@@ -94,20 +94,22 @@ class FileCard extends React.PureComponent {
{title}
-
+
{" "}
{isRewardContent && }{" "}
{fileInfo && }
-
+
+
+
- {/* Test for nizuka's design: should we remove description?
+
+ {/* Test for nizuka's design: should we remove description?
{description}
*/}
-
{obscureNsfw && this.state.hovered && }
diff --git a/src/renderer/component/link/view.jsx b/src/renderer/component/link/view.jsx
index cfb2a731b..0f5ea3fca 100644
--- a/src/renderer/component/link/view.jsx
+++ b/src/renderer/component/link/view.jsx
@@ -16,6 +16,7 @@ const Link = props => {
navigateParams,
doNavigate,
className,
+ span,
} = props;
const combinedClassName =
@@ -26,7 +27,8 @@ const Link = props => {
const onClick =
!props.onClick && navigate
- ? () => {
+ ? e => {
+ e.stopPropagation();
doNavigate(navigate, navigateParams || {});
}
: props.onClick;
@@ -44,16 +46,18 @@ const Link = props => {
);
}
- return (
-
- {content}
-
+ const linkProps = {
+ className: combinedClassName,
+ href: href || "javascript:;",
+ title,
+ onClick,
+ style,
+ };
+
+ return span ? (
+ {content}
+ ) : (
+ {content}
);
};
diff --git a/src/renderer/component/uriIndicator/view.jsx b/src/renderer/component/uriIndicator/view.jsx
index 3bf850d11..60b912e35 100644
--- a/src/renderer/component/uriIndicator/view.jsx
+++ b/src/renderer/component/uriIndicator/view.jsx
@@ -22,7 +22,7 @@ class UriIndicator extends React.PureComponent {
}
render() {
- const { claim, link, uri, isResolvingUri, smallCard } = this.props;
+ const { claim, link, uri, isResolvingUri, smallCard, span } = this.props;
if (isResolvingUri && !claim) {
return Validating...;
@@ -91,6 +91,7 @@ class UriIndicator extends React.PureComponent {
navigate="/show"
navigateParams={{ uri: channelLink }}
className="no-underline"
+ span={span}
>
{inner}