mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-15 10:19:59 +00:00
Fix collapsible sidebar not working
This commit is contained in:
parent
7cc95d9dac
commit
eba0aaa351
6
docs/_static/sidebar.js
vendored
6
docs/_static/sidebar.js
vendored
@ -41,9 +41,9 @@ class Sidebar {
|
|||||||
|
|
||||||
icon.addEventListener('click', () => {
|
icon.addEventListener('click', () => {
|
||||||
if (icon.classList.contains('expanded')) {
|
if (icon.classList.contains('expanded')) {
|
||||||
collapseSection(icon);
|
this.collapseSection(icon);
|
||||||
} else {
|
} else {
|
||||||
expandSection(icon);
|
this.expandSection(icon);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ class Sidebar {
|
|||||||
icon.classList.add('collapsed');
|
icon.classList.add('collapsed');
|
||||||
icon.innerText = 'chevron_right';
|
icon.innerText = 'chevron_right';
|
||||||
let children = icon.nextElementSibling.nextElementSibling;
|
let children = icon.nextElementSibling.nextElementSibling;
|
||||||
// <arrow><heading>
|
// <arrow><heading>
|
||||||
// --> <square><children>
|
// --> <square><children>
|
||||||
children.style.display = "none";
|
children.style.display = "none";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user