From: Zetaphor Date: Fri, 16 Jun 2023 20:27:41 +0000 (-0300) Subject: Use article semantic HTML tag for posts/comments X-Git-Url: http://these/git/%22https:/nerdica.net/%22%7B%7D/%22?a=commitdiff_plain;h=5d7e5cac33fc27a1a67196377963a54082d5c69e;p=lemmy-ui.git Use article semantic HTML tag for posts/comments --- 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 ( -
    +
    + ); } }