From ed3096157cdd44e128bb85c4d726602042ecb58b Mon Sep 17 00:00:00 2001 From: Wendelin <12148533+wendevlin@users.noreply.github.com> Date: Wed, 6 Nov 2024 13:19:17 +0100 Subject: [PATCH] Fix logs overflow when there are 0 boots (#22694) --- src/panels/config/logs/error-log-card.ts | 30 ++++++++++++++---------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/src/panels/config/logs/error-log-card.ts b/src/panels/config/logs/error-log-card.ts index b89288d7202d..94039c102e4b 100644 --- a/src/panels/config/logs/error-log-card.ts +++ b/src/panels/config/logs/error-log-card.ts @@ -242,19 +242,23 @@ class ErrorLogCard extends LitElement { .label=${this.hass.localize("ui.common.refresh")} >` : nothing} - - - - - - ${this.hass.localize( - `ui.panel.config.logs.${this._showBootsSelect ? "hide" : "show"}_haos_boots` - )} - - + ${this._streamSupported && Array.isArray(this._boots) + ? html` + + + + + + ${this.hass.localize( + `ui.panel.config.logs.${this._showBootsSelect ? "hide" : "show"}_haos_boots` + )} + + + ` + : nothing}