From 9a943e1f2ee9536a3cbd903264dbdc38691a3210 Mon Sep 17 00:00:00 2001 From: Zetaphor Date: Fri, 16 Jun 2023 17:27:55 -0300 Subject: [PATCH] Use aside semantic HTML tag for sidebars --- src/shared/components/community/sidebar.tsx | 8 +-- src/shared/components/home/home.tsx | 55 +++++++++++---------- src/shared/components/home/site-sidebar.tsx | 4 +- 3 files changed, 34 insertions(+), 33 deletions(-) diff --git a/src/shared/components/community/sidebar.tsx b/src/shared/components/community/sidebar.tsx index 0d08e77e..11870f5d 100644 --- a/src/shared/components/community/sidebar.tsx +++ b/src/shared/components/community/sidebar.tsx @@ -133,7 +133,7 @@ export class Sidebar extends Component { const { name, actor_id } = this.props.community_view.community; return (
-
+
{this.communityTitle()} {this.props.editable && this.adminButtons()} @@ -154,14 +154,14 @@ export class Sidebar extends Component {
)}
-
-
+ +
{this.description()} {this.badges()} {this.mods()}
-
+ ); } diff --git a/src/shared/components/home/home.tsx b/src/shared/components/home/home.tsx index 9c7cd753..c7780a9e 100644 --- a/src/shared/components/home/home.tsx +++ b/src/shared/components/home/home.tsx @@ -422,36 +422,37 @@ export class Home extends Component { } = this.state; return ( -
-
-
-
- {this.trendingCommunities()} - {canCreateCommunity(this.state.siteRes) && ( - - )} +
+
+
+ {this.trendingCommunities()} + {canCreateCommunity(this.state.siteRes) && ( -
+ )} +
- - {this.hasFollows && ( -
-
{this.subscribedCommunities}
-
- )} -
+ + + {this.hasFollows && ( +
+
{this.subscribedCommunities}
+
+ )}
); } diff --git a/src/shared/components/home/site-sidebar.tsx b/src/shared/components/home/site-sidebar.tsx index d96a1381..d2a3eee0 100644 --- a/src/shared/components/home/site-sidebar.tsx +++ b/src/shared/components/home/site-sidebar.tsx @@ -30,7 +30,7 @@ export class SiteSidebar extends Component { render() { return ( -
+
{this.siteName()}
@@ -42,7 +42,7 @@ export class SiteSidebar extends Component { )}
-
+ ); }