]> Untitled Git - lemmy-ui.git/commitdiff
Add ID's and classes to sidebars
authorZetaphor <zetaphor@hey.com>
Fri, 16 Jun 2023 17:12:27 +0000 (14:12 -0300)
committerZetaphor <zetaphor@hey.com>
Fri, 16 Jun 2023 17:12:27 +0000 (14:12 -0300)
src/shared/components/community/sidebar.tsx
src/shared/components/home/home.tsx
src/shared/components/home/site-sidebar.tsx

index 63378a18f4ad8baf1b816be3a5c630f20f387dc7..692987b5206b849bfa88bac7c355f50b4f5f793e 100644 (file)
@@ -135,8 +135,8 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
     const myUSerInfo = UserService.Instance.myUserInfo;
     const { name, actor_id } = this.props.community_view.community;
     return (
-      <div>
-        <div className="card border-secondary mb-3">
+      <div id="sidebarContainer">
+        <div id="sidebarMain" className="card border-secondary mb-3">
           <div className="card-body">
             {this.communityTitle()}
             {this.props.editable && this.adminButtons()}
@@ -158,7 +158,7 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
             )}
           </div>
         </div>
-        <div className="card border-secondary mb-3">
+        <div id="sidebarInfo" className="card border-secondary mb-3">
           <div className="card-body">
             {this.description()}
             {this.badges()}
index 1abb1ee329f391ab52e93e1c33d389e173ddf834..9c7cd753defe55c61f92226fe1617ef68c9c2608 100644 (file)
@@ -423,8 +423,8 @@ export class Home extends Component<any, HomeState> {
 
     return (
       <div>
-        <div>
-          <div className="card border-secondary mb-3">
+        <div id="sidebarContainer">
+          <div id="sidebarMain" className="card border-secondary mb-3">
             <div className="card-body">
               {this.trendingCommunities()}
               {canCreateCommunity(this.state.siteRes) && (
@@ -447,7 +447,7 @@ export class Home extends Component<any, HomeState> {
             showLocal={showLocal(this.isoData)}
           />
           {this.hasFollows && (
-            <div className="card border-secondary mb-3">
+            <div id="sidebarSubscribed" className="card border-secondary mb-3">
               <div className="card-body">{this.subscribedCommunities}</div>
             </div>
           )}
index 051c3afd480c3d0676ecf176dde3ca919c0b3abd..d96a1381dc8575afad92efe935aa73a198d830c3 100644 (file)
@@ -30,7 +30,7 @@ export class SiteSidebar extends Component<SiteSidebarProps, SiteSidebarState> {
 
   render() {
     return (
-      <div className="card border-secondary mb-3">
+      <div id="sidebarInfo" className="card border-secondary mb-3">
         <div className="card-body">
           <div>
             <div className="mb-2">{this.siteName()}</div>