mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-01 05:27:46 +00:00
Space out sidebar
This commit is contained in:
parent
6911df9ac4
commit
157bfd6f80
@ -149,11 +149,7 @@ class HaSidebar extends LitElement {
|
|||||||
: ""}
|
: ""}
|
||||||
<span class="title">Home Assistant</span>
|
<span class="title">Home Assistant</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="wrapper">
|
<paper-listbox attr-for-selected="data-panel" .selected=${hass.panelUrl}>
|
||||||
<paper-listbox
|
|
||||||
attr-for-selected="data-panel"
|
|
||||||
.selected=${hass.panelUrl}
|
|
||||||
>
|
|
||||||
<a
|
<a
|
||||||
aria-role="option"
|
aria-role="option"
|
||||||
href="${computeUrl(this._defaultPage)}"
|
href="${computeUrl(this._defaultPage)}"
|
||||||
@ -167,7 +163,6 @@ class HaSidebar extends LitElement {
|
|||||||
</a>
|
</a>
|
||||||
|
|
||||||
${beforeSpacer.map((panel) => renderPanel(hass, panel))}
|
${beforeSpacer.map((panel) => renderPanel(hass, panel))}
|
||||||
|
|
||||||
<div class="spacer" disabled></div>
|
<div class="spacer" disabled></div>
|
||||||
|
|
||||||
${afterSpacer.map((panel) => renderPanel(hass, panel))}
|
${afterSpacer.map((panel) => renderPanel(hass, panel))}
|
||||||
@ -222,10 +217,7 @@ class HaSidebar extends LitElement {
|
|||||||
aria-label=${hass.localize("panel.profile")}
|
aria-label=${hass.localize("panel.profile")}
|
||||||
>
|
>
|
||||||
<paper-icon-item>
|
<paper-icon-item>
|
||||||
<ha-user-badge
|
<ha-user-badge slot="item-icon" .user=${hass.user}></ha-user-badge>
|
||||||
slot="item-icon"
|
|
||||||
.user=${hass.user}
|
|
||||||
></ha-user-badge>
|
|
||||||
|
|
||||||
<span class="item-text">
|
<span class="item-text">
|
||||||
${hass.user ? hass.user.name : ""}
|
${hass.user ? hass.user.name : ""}
|
||||||
@ -234,7 +226,6 @@ class HaSidebar extends LitElement {
|
|||||||
</a>
|
</a>
|
||||||
<div disabled class="bottom-spacer sticky-el"></div>
|
<div disabled class="bottom-spacer sticky-el"></div>
|
||||||
</paper-listbox>
|
</paper-listbox>
|
||||||
</div>
|
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -333,11 +324,6 @@ class HaSidebar extends LitElement {
|
|||||||
width: 256px;
|
width: 256px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrapper {
|
|
||||||
overflow-y: auto;
|
|
||||||
height: calc(100% - 65px);
|
|
||||||
}
|
|
||||||
|
|
||||||
.menu {
|
.menu {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
height: 65px;
|
height: 65px;
|
||||||
@ -375,6 +361,8 @@ class HaSidebar extends LitElement {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
height: calc(100% - 65px);
|
||||||
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
paper-listbox > a {
|
paper-listbox > a {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user