Change frontend setting prioritization

This commit is contained in:
2022-07-24 13:24:17 +00:00
parent d5edd2452a
commit 02c8f91690
7 changed files with 26 additions and 22 deletions

View File

@@ -48,11 +48,11 @@ export const AutoSettingsMixin = (SuperClass) => {
selectTree(
document.body,
"home-assistant$home-assistant-main$app-drawer-layout"
).then((el) => el.style.setProperty("--app-drawer-width", "0px"));
).then((el) => el?.style?.setProperty("--app-drawer-width", "0px"));
selectTree(
document.body,
"home-assistant$home-assistant-main$app-drawer-layout app-drawer"
).then((el) => el.remove());
).then((el) => el?.remove?.());
}
// Hide header