From 5d7e5cac33fc27a1a67196377963a54082d5c69e Mon Sep 17 00:00:00 2001 From: Zetaphor Date: Fri, 16 Jun 2023 17:27:41 -0300 Subject: [PATCH] Use article semantic HTML tag for posts/comments --- src/shared/components/comment/comment-node.tsx | 4 ++-- src/shared/components/post/post-listing.tsx | 12 ++++++------ src/shared/components/post/post.tsx | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/shared/components/comment/comment-node.tsx b/src/shared/components/comment/comment-node.tsx index 9ebbf34..aeb4a71 100644 --- a/src/shared/components/comment/comment-node.tsx +++ b/src/shared/components/comment/comment-node.tsx @@ -282,7 +282,7 @@ export class CommentNode extends Component { return (
  • -
    {
    )} - + {showMoreChildren && (
    { body() { const body = this.postView.post.body; return body ? ( -
    +
    {this.state.viewSource ? (
    {body}
    ) : (
    )} -
    +
    ) : ( <> ); @@ -1398,7 +1398,7 @@ export class PostListing extends Component { <> {/* The mobile view*/}
    -
    +
    {this.createdLine()} @@ -1413,12 +1413,12 @@ export class PostListing extends Component { {this.duplicatesLine()} {this.removeAndBanDialogs()}
    -
    +
    {/* The larger view*/}
    -
    +
    {!this.props.viewOnly && this.voteBar()}
    {this.thumbnail()}
    @@ -1435,7 +1435,7 @@ export class PostListing extends Component {
    -
    +
    ); diff --git a/src/shared/components/post/post.tsx b/src/shared/components/post/post.tsx index dadebcf..36c8436 100644 --- a/src/shared/components/post/post.tsx +++ b/src/shared/components/post/post.tsx @@ -548,7 +548,7 @@ export class Post extends Component { const res = this.state.postRes; if (res.state === "success") { return ( -
    +
    + ); } } -- 2.44.1