Skip to content

Commit

Permalink
Fix hide notification dot with sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
j-a-n committed Apr 30, 2023
1 parent 09dbd6d commit 18e7f70
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions wallpanel.js
Original file line number Diff line number Diff line change
@@ -372,11 +372,19 @@ function setSidebarHidden(hidden) {
haMenuButton.style.display = (hidden ? "none" : "initial");
const haIconButton = haMenuButton.shadowRoot
.querySelector("ha-icon-button");
const divDot = haMenuButton.shadowRoot
.querySelector("div.dot");
if (hidden) {
haIconButton.style.display = "none";
if (divDot) {
divDot.style.display = "none";
}
}
else {
haIconButton.style.removeProperty("display");
if (divDot) {
divDot.style.removeProperty("display");
}
}
}
catch (e) {

0 comments on commit 18e7f70

Please sign in to comment.