mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 12:21:13 +00:00
fix: Remove Bootstrap JS in sidebars (#1434)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
This commit is contained in:
parent
3db4fdddcd
commit
1d0e96dbc4
2 changed files with 23 additions and 26 deletions
|
@ -570,8 +570,6 @@ export class Home extends Component<any, HomeState> {
|
|||
data-tippy-content={
|
||||
subscribedCollapsed ? i18n.t("expand") : i18n.t("collapse")
|
||||
}
|
||||
data-bs-toggle="collapse"
|
||||
data-bs-target="#sidebarSubscribedBody"
|
||||
aria-expanded="true"
|
||||
aria-controls="sidebarSubscribedBody"
|
||||
>
|
||||
|
@ -582,9 +580,9 @@ export class Home extends Component<any, HomeState> {
|
|||
</button>
|
||||
)}
|
||||
</header>
|
||||
{!subscribedCollapsed && (
|
||||
<div
|
||||
id="sidebarSubscribedBody"
|
||||
className="collapse show"
|
||||
aria-labelledby="sidebarSubscribedHeader"
|
||||
>
|
||||
<div className="card-body">
|
||||
|
@ -600,6 +598,7 @@ export class Home extends Component<any, HomeState> {
|
|||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -42,13 +42,11 @@ export class SiteSidebar extends Component<SiteSidebarProps, SiteSidebarState> {
|
|||
)}
|
||||
</header>
|
||||
|
||||
<div
|
||||
id="sidebarInfoBody"
|
||||
className="collapse show"
|
||||
aria-labelledby="sidebarInfoHeader"
|
||||
>
|
||||
{!this.state.collapsed && (
|
||||
<div id="sidebarInfoBody" aria-labelledby="sidebarInfoHeader">
|
||||
<div className="card-body">{this.siteInfo()}</div>
|
||||
</div>
|
||||
)}
|
||||
</section>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue