mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-30 13:21:11 +00:00
Making links go to post page.
This commit is contained in:
parent
a27badefba
commit
177c462b40
1 changed files with 7 additions and 18 deletions
11
ui/src/components/post-listing.tsx
vendored
11
ui/src/components/post-listing.tsx
vendored
|
@ -171,16 +171,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
<div className="ml-4">
|
<div className="ml-4">
|
||||||
<div className="post-title text-wrap-truncate">
|
<div className="post-title text-wrap-truncate">
|
||||||
<h5 className="mb-0 d-inline">
|
<h5 className="mb-0 d-inline">
|
||||||
{post.url ? (
|
|
||||||
<a
|
|
||||||
className="text-body"
|
|
||||||
href={post.url}
|
|
||||||
target="_blank"
|
|
||||||
title={post.url}
|
|
||||||
>
|
|
||||||
{post.name}
|
|
||||||
</a>
|
|
||||||
) : (
|
|
||||||
<Link
|
<Link
|
||||||
className="text-body"
|
className="text-body"
|
||||||
to={`/post/${post.id}`}
|
to={`/post/${post.id}`}
|
||||||
|
@ -188,7 +178,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
>
|
>
|
||||||
{post.name}
|
{post.name}
|
||||||
</Link>
|
</Link>
|
||||||
)}
|
|
||||||
</h5>
|
</h5>
|
||||||
{post.url && (
|
{post.url && (
|
||||||
<small>
|
<small>
|
||||||
|
|
Loading…
Reference in a new issue