Skip to content

Commit

Permalink
Fix logs overflow when there are 0 boots (#22694)
Browse files Browse the repository at this point in the history
  • Loading branch information
wendevlin authored Nov 6, 2024
1 parent 04a45a4 commit ed30961
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions src/panels/config/logs/error-log-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,19 +242,23 @@ class ErrorLogCard extends LitElement {
.label=${this.hass.localize("ui.common.refresh")}
></ha-icon-button>`
: nothing}
<ha-button-menu @action=${this._handleOverflowAction}>
<ha-icon-button slot="trigger" .path=${mdiDotsVertical}>
</ha-icon-button>
<ha-list-item graphic="icon">
<ha-svg-icon
slot="graphic"
.path=${mdiFormatListNumbered}
></ha-svg-icon>
${this.hass.localize(
`ui.panel.config.logs.${this._showBootsSelect ? "hide" : "show"}_haos_boots`
)}
</ha-list-item>
</ha-button-menu>
${this._streamSupported && Array.isArray(this._boots)
? html`
<ha-button-menu @action=${this._handleOverflowAction}>
<ha-icon-button slot="trigger" .path=${mdiDotsVertical}>
</ha-icon-button>
<ha-list-item graphic="icon">
<ha-svg-icon
slot="graphic"
.path=${mdiFormatListNumbered}
></ha-svg-icon>
${this.hass.localize(
`ui.panel.config.logs.${this._showBootsSelect ? "hide" : "show"}_haos_boots`
)}
</ha-list-item>
</ha-button-menu>
`
: nothing}
</div>
</div>
<div class="card-content error-log">
Expand Down

0 comments on commit ed30961

Please sign in to comment.