From: Zetaphor Date: Fri, 16 Jun 2023 20:27:55 +0000 (-0300) Subject: Use aside semantic HTML tag for sidebars X-Git-Url: http://these/git/ui/assets/static/%7Bvideo_url%7D?a=commitdiff_plain;h=9a943e1f2ee9536a3cbd903264dbdc38691a3210;p=lemmy-ui.git Use aside semantic HTML tag for sidebars --- diff --git a/src/shared/components/community/sidebar.tsx b/src/shared/components/community/sidebar.tsx index 0d08e77..11870f5 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 9c7cd75..c7780a9 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 d96a138..d2a3eee 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 { )}
-
+ ); }