diff --git a/src/components/ha-sidebar.html b/src/components/ha-sidebar.html
index 1070918bbb..318ede902b 100644
--- a/src/components/ha-sidebar.html
+++ b/src/components/ha-sidebar.html
@@ -20,6 +20,7 @@
font-weight: 500;
font-size: 14px;
};
+ height: 100%;
display: block;
overflow: auto;
-ms-user-select: none;
diff --git a/src/layouts/home-assistant-main.html b/src/layouts/home-assistant-main.html
index abe5b2d13e..ad03f0954b 100644
--- a/src/layouts/home-assistant-main.html
+++ b/src/layouts/home-assistant-main.html
@@ -1,5 +1,6 @@
-
+
+
@@ -20,6 +21,9 @@
:host {
color: var(--primary-text-color);
}
+ iron-pages {
+ height: 100%;
+ }
@@ -35,18 +39,25 @@
-
-
+
+ disable-swipe='[[_computeDisableSwipe(hass)]]'
+ swipe-open='[[!_computeDisableSwipe(hass)]]'
+ persistent='[[dockedSidebar]]'
+ >
+
+
-
+
@@ -107,7 +118,7 @@
_routeChanged() {
if (this.narrow) {
- this.$.drawer.closeDrawer();
+ this.$.drawer.close();
}
}
@@ -118,14 +129,14 @@
handleOpenMenu() {
if (this.narrow) {
- this.$.drawer.openDrawer();
+ this.$.drawer.open();
} else {
this.fire('hass-dock-sidebar', { dock: true });
}
}
handleCloseMenu() {
- this.$.drawer.closeDrawer();
+ this.$.drawer.close();
if (this.dockedSidebar) {
this.fire('hass-dock-sidebar', { dock: false });
}