Skip to content

Commit

Permalink
Set ha-sidebar hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
j-a-n committed Apr 11, 2023
1 parent 7756509 commit 64e626d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wallpanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,10 @@ function getCurrentView() {

function setSidebarHidden(hidden) {
try {
let sidebar = elHaMain.shadowRoot.querySelector("ha-sidebar");
if (sidebar) {
sidebar.style.visibility = (hidden ? "hidden" : "visible");
}
let drawer = elHaMain.shadowRoot.querySelector("ha-drawer");
if (drawer) {
drawer = drawer.shadowRoot.querySelector(".mdc-drawer");
Expand Down

0 comments on commit 64e626d

Please sign in to comment.