mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-27 16:24:24 +00:00
Add ID's and classes to sidebars
This commit is contained in:
parent
2d79ad32b5
commit
da1a4f81df
|
@ -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()}
|
||||
|
|
|
@ -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>
|
||||
)}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue