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/%7B%24%7B%60data:application/manifest%20json;base64%2C%24%7Bawait?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 ( -
    +
    + ); } }