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; } `, ];