mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 12:21:13 +00:00
* always show fedilinks (issue #2160) * fix comment fedilinks title text * fix comment links title text * remove unused local variable --------- Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
This commit is contained in:
parent
1ff4acc049
commit
77cd46b35b
2 changed files with 15 additions and 15 deletions
|
@ -507,11 +507,13 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
|
||||||
>
|
>
|
||||||
<Icon icon="link" classes="icon-inline" />
|
<Icon icon="link" classes="icon-inline" />
|
||||||
</Link>
|
</Link>
|
||||||
{!cv.comment.local && (
|
<a
|
||||||
<a className={classnames} title={title} href={cv.comment.ap_id}>
|
className={classnames}
|
||||||
<Icon icon="fedilink" classes="icon-inline" />
|
title={I18NextService.i18n.t("link")}
|
||||||
</a>
|
href={cv.comment.ap_id}
|
||||||
)}
|
>
|
||||||
|
<Icon icon="fedilink" classes="icon-inline" />
|
||||||
|
</a>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -553,7 +553,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
enableDownvotes,
|
enableDownvotes,
|
||||||
} = this.props;
|
} = this.props;
|
||||||
const {
|
const {
|
||||||
post: { local, ap_id, id, body },
|
post: { ap_id, id, body },
|
||||||
counts,
|
counts,
|
||||||
my_vote,
|
my_vote,
|
||||||
} = this.postView;
|
} = this.postView;
|
||||||
|
@ -570,15 +570,13 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
<Icon icon="share" inline />
|
<Icon icon="share" inline />
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
{!local && (
|
<a
|
||||||
<a
|
className="btn btn-sm btn-link btn-animate text-muted py-0"
|
||||||
className="btn btn-sm btn-link btn-animate text-muted py-0"
|
title={I18NextService.i18n.t("link")}
|
||||||
title={I18NextService.i18n.t("link")}
|
href={ap_id}
|
||||||
href={ap_id}
|
>
|
||||||
>
|
<Icon icon="fedilink" inline />
|
||||||
<Icon icon="fedilink" inline />
|
</a>
|
||||||
</a>
|
|
||||||
)}
|
|
||||||
{mobile && !viewOnly && (
|
{mobile && !viewOnly && (
|
||||||
<VoteButtonsCompact
|
<VoteButtonsCompact
|
||||||
voteContentType={VoteContentType.Post}
|
voteContentType={VoteContentType.Post}
|
||||||
|
|
Loading…
Reference in a new issue