diff --git a/src/components/ha-faded.ts b/src/components/ha-faded.ts index 974956dcfd..8f53e1cb6c 100644 --- a/src/components/ha-faded.ts +++ b/src/components/ha-faded.ts @@ -42,9 +42,7 @@ class HaFaded extends LitElement { private _setShowContent() { const height = this._slottedHeight; - if (height !== 0 && height <= this.fadedHeight + 50) { - this._contentShown = true; - } + this._contentShown = height !== 0 && height <= this.fadedHeight + 50; } protected firstUpdated(changedProps) {