Skip to content

Commit

Permalink
Remove 1px line on the left side with hidden sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
j-a-n committed Dec 23, 2023
1 parent 8c7ce85 commit 21f6fa0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions wallpanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,10 +490,8 @@ function setSidebarHidden(hidden) {
}

try {
const sidebar = elHaMain.shadowRoot.querySelector("ha-sidebar");
if (sidebar) {
sidebar.style.display = (hidden ? "none" : "");
}
const aside = elHaMain.shadowRoot.querySelector("ha-drawer").shadowRoot.querySelector("aside");
aside.style.display = (hidden ? "none" : "");
if (hidden) {
elHaMain.style.setProperty("--mdc-drawer-width", "env(safe-area-inset-left)");
}
Expand Down

0 comments on commit 21f6fa0

Please sign in to comment.