From bed39fd8e91512e22722d96e5ec7c8f59578d808 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 26 Mar 2026 10:39:00 -0400 Subject: [PATCH] Hide features layout option until feature added (#30353) --- .../config-elements/hui-tile-card-editor.ts | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/panels/lovelace/editor/config-elements/hui-tile-card-editor.ts b/src/panels/lovelace/editor/config-elements/hui-tile-card-editor.ts index 263160be28..8d289243bb 100644 --- a/src/panels/lovelace/editor/config-elements/hui-tile-card-editor.ts +++ b/src/panels/lovelace/editor/config-elements/hui-tile-card-editor.ts @@ -293,6 +293,7 @@ export class HuiTileCardEditor const featureContext = this._featureContext(entityId); const hasCompatibleFeatures = this._hasCompatibleFeatures(featureContext); + const hasFeatures = (this._config.features?.length ?? 0) > 0; return html`
- ${hasCompatibleFeatures + + ${hasCompatibleFeatures && hasFeatures ? html` ` : nothing} -
`; @@ -478,7 +479,8 @@ export class HuiTileCardEditor margin-bottom: 8px; } .features-form { - margin-bottom: 8px; + margin-top: var(--ha-space-6); + margin-bottom: 0; } `, ];