From 157bfd6f802c0fd00492c1300467ca94672e2ef9 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 30 Jun 2019 22:21:37 -0700 Subject: [PATCH] Space out sidebar --- src/components/ha-sidebar.ts | 146 ++++++++++++++++------------------- 1 file changed, 67 insertions(+), 79 deletions(-) diff --git a/src/components/ha-sidebar.ts b/src/components/ha-sidebar.ts index 281eae4aaa..389f6010f3 100644 --- a/src/components/ha-sidebar.ts +++ b/src/components/ha-sidebar.ts @@ -149,92 +149,83 @@ class HaSidebar extends LitElement { : ""} Home Assistant -
- + - - - - ${hass.localize("panel.states")} - - + + + ${hass.localize("panel.states")} + + - ${beforeSpacer.map((panel) => renderPanel(hass, panel))} + ${beforeSpacer.map((panel) => renderPanel(hass, panel))} +
-
+ ${afterSpacer.map((panel) => renderPanel(hass, panel))} + ${this._externalConfig && this._externalConfig.hasSettingsScreen + ? html` + + + + + ${hass.localize("ui.sidebar.external_app_configuration")} + + + + ` + : ""} - ${afterSpacer.map((panel) => renderPanel(hass, panel))} - ${this._externalConfig && this._externalConfig.hasSettingsScreen +
+ + + + ${notificationCount > 0 ? html` - - - - - ${hass.localize("ui.sidebar.external_app_configuration")} - - - + + ${notificationCount} + ` : ""} + + ${hass.localize("ui.notification_drawer.title")} + + -
+ + + - - - ${notificationCount > 0 - ? html` - - ${notificationCount} - - ` - : ""} - ${hass.localize("ui.notification_drawer.title")} + ${hass.user ? hass.user.name : ""} - - - - - - - ${hass.user ? hass.user.name : ""} - - - -
-
-
+ +
+ `; } @@ -333,11 +324,6 @@ class HaSidebar extends LitElement { width: 256px; } - .wrapper { - overflow-y: auto; - height: calc(100% - 65px); - } - .menu { box-sizing: border-box; height: 65px; @@ -375,6 +361,8 @@ class HaSidebar extends LitElement { display: flex; flex-direction: column; box-sizing: border-box; + height: calc(100% - 65px); + overflow-y: auto; } paper-listbox > a {