Skip to content

Commit

Permalink
Merge pull request #14 from czue/show-more-styles
Browse files Browse the repository at this point in the history
tweak styles of show more button
  • Loading branch information
czue authored Dec 5, 2024
2 parents 98207ed + a8d0575 commit 3667e62
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/CommentSection.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,13 @@
gap: 0.5rem;
}

.showMoreButton {
.container .showMoreButton {
margin-top: 0.5rem;
font-size: 0.875rem;
color: #3b82f6;
text-decoration: underline;
}

.container .showMoreButton:hover {
text-decoration: underline;
}

Expand Down
4 changes: 2 additions & 2 deletions src/CommentSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ export const CommentSection = ({ uri: propUri, author, onEmpty, commentFilters }
return <Comment key={reply.post.uri} comment={reply} filters={commentFilters} />;
})}
{visibleCount < sortedReplies.length && (
<button onClick={showMore} className={styles.showMoreButton}>
<a onClick={showMore} className={styles.showMoreButton}>
Show more comments
</button>
</a>
)}
</div>
</div>
Expand Down

0 comments on commit 3667e62

Please sign in to comment.