mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-08 00:47:47 +00:00
Fix hidden items spacer separation
This commit is contained in:
parent
1369d0f36d
commit
29d9219481
@ -387,7 +387,7 @@ class HaSidebar extends LitElement {
|
|||||||
this._renderEmptySortable ? "" : this._renderPanels(beforeSpacer)
|
this._renderEmptySortable ? "" : this._renderPanels(beforeSpacer)
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
${this._renderSpacer()}
|
${this._renderHiddenItemSpacer()}
|
||||||
${this._renderHiddenPanels()} `;
|
${this._renderHiddenPanels()} `;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -464,6 +464,10 @@ class HaSidebar extends LitElement {
|
|||||||
return html`<li divider role="separator" class="spacer"></li>`;
|
return html`<li divider role="separator" class="spacer"></li>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private _renderHiddenItemSpacer() {
|
||||||
|
return html`<li divider role="separator" class="spacer-hidden"></li>`;
|
||||||
|
}
|
||||||
|
|
||||||
private _renderNotifications() {
|
private _renderNotifications() {
|
||||||
let notificationCount = this._notifications
|
let notificationCount = this._notifications
|
||||||
? this._notifications.length
|
? this._notifications.length
|
||||||
@ -1044,6 +1048,14 @@ class HaSidebar extends LitElement {
|
|||||||
.spacer {
|
.spacer {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
border: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.spacer-hidden {
|
||||||
|
flex: 1;
|
||||||
|
pointer-events: none;
|
||||||
|
height: 77px;
|
||||||
|
border: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.subheader {
|
.subheader {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user