Skip to content

Commit

Permalink
fix last visit dotted border
Browse files Browse the repository at this point in the history
  • Loading branch information
plebeius-eth committed Feb 20, 2024
1 parent f03671f commit c2de6ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/post/post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,13 @@ const Post = ({ index, post = {} }: PostProps) => {
</div>
<div className={styles.entry}>
<div className={styles.topMatter}>
<p className={`${styles.title} ${removed && !isInPostView ? styles.blur : ''}`} onClick={handlePostClick}>
<p className={`${styles.title} ${removed && !isInPostView ? styles.blur : ''}`}>
{isInPostView && link ? (
<a href={link} className={linkClass} target='_blank' rel='noopener noreferrer'>
<a href={link} className={linkClass} target='_blank' rel='noopener noreferrer' onClick={handlePostClick}>
{postTitle ?? '-'}
</a>
) : (
<Link className={linkClass} to={cid ? `/p/${subplebbitAddress}/c/${cid}` : `/profile/${post?.index}`}>
<Link className={linkClass} to={cid ? `/p/${subplebbitAddress}/c/${cid}` : `/profile/${post?.index}`} onClick={handlePostClick}>
{postTitle ?? '-'}
</Link>
)}
Expand Down

0 comments on commit c2de6ac

Please sign in to comment.