mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-26 14:21:13 +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 myUSerInfo = UserService.Instance.myUserInfo;
|
||||||
const { name, actor_id } = this.props.community_view.community;
|
const { name, actor_id } = this.props.community_view.community;
|
||||||
return (
|
return (
|
||||||
|
<aside className="mb-3">
|
||||||
<div id="sidebarContainer">
|
<div id="sidebarContainer">
|
||||||
<section id="sidebarMain" className="card border-secondary mb-3">
|
<section id="sidebarMain" className="card border-secondary mb-3">
|
||||||
<div className="card-body">
|
<div className="card-body">
|
||||||
|
@ -162,6 +163,7 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
</aside>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -548,7 +548,6 @@ export class Post extends Component<any, PostState> {
|
||||||
const res = this.state.postRes;
|
const res = this.state.postRes;
|
||||||
if (res.state === "success") {
|
if (res.state === "success") {
|
||||||
return (
|
return (
|
||||||
<aside className="mb-3">
|
|
||||||
<Sidebar
|
<Sidebar
|
||||||
community_view={res.data.community_view}
|
community_view={res.data.community_view}
|
||||||
moderators={res.data.moderators}
|
moderators={res.data.moderators}
|
||||||
|
@ -565,7 +564,6 @@ export class Post extends Component<any, PostState> {
|
||||||
onBlockCommunity={this.handleBlockCommunity}
|
onBlockCommunity={this.handleBlockCommunity}
|
||||||
onEditCommunity={this.handleEditCommunity}
|
onEditCommunity={this.handleEditCommunity}
|
||||||
/>
|
/>
|
||||||
</aside>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue