mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-26 06:11:15 +00:00
Remove extra div in post sidebar
This commit is contained in:
parent
a03bee512a
commit
e13d6145cb
2 changed files with 49 additions and 49 deletions
|
@ -131,6 +131,7 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
|
|||
const myUSerInfo = UserService.Instance.myUserInfo;
|
||||
const { name, actor_id } = this.props.community_view.community;
|
||||
return (
|
||||
<aside className="mb-3">
|
||||
<div id="sidebarContainer">
|
||||
<section id="sidebarMain" className="card border-secondary mb-3">
|
||||
<div className="card-body">
|
||||
|
@ -162,6 +163,7 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
|
|||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</aside>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -548,7 +548,6 @@ export class Post extends Component<any, PostState> {
|
|||
const res = this.state.postRes;
|
||||
if (res.state === "success") {
|
||||
return (
|
||||
<aside className="mb-3">
|
||||
<Sidebar
|
||||
community_view={res.data.community_view}
|
||||
moderators={res.data.moderators}
|
||||
|
@ -565,7 +564,6 @@ export class Post extends Component<any, PostState> {
|
|||
onBlockCommunity={this.handleBlockCommunity}
|
||||
onEditCommunity={this.handleEditCommunity}
|
||||
/>
|
||||
</aside>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue