Minor changes
This commit is contained in:
@ -26,4 +26,14 @@ export class SideBar {
|
||||
hide() {
|
||||
this.element.classList.remove("sidebar-visible")
|
||||
}
|
||||
|
||||
toggle() {
|
||||
let visible = this.element.style.display !== "none"
|
||||
|
||||
if(visible) {
|
||||
this.element.style.display = "none"
|
||||
} else {
|
||||
this.element.style.display = "flex"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user