diff --git a/src/panels/lovelace/cards/hui-tile-card.ts b/src/panels/lovelace/cards/hui-tile-card.ts index 101c983eeb..f20eb2ecde 100644 --- a/src/panels/lovelace/cards/hui-tile-card.ts +++ b/src/panels/lovelace/cards/hui-tile-card.ts @@ -310,24 +310,22 @@ export class HuiTileCard extends LitElement implements LovelaceCard { if (!stateObj) { return html` -
-
-
- - -
- +
+
+ +
+
`; @@ -359,73 +357,71 @@ export class HuiTileCard extends LitElement implements LovelaceCard { return html` -
+
+ ${this._shouldRenderRipple + ? html`` + : nothing} +
+
- ${this._shouldRenderRipple - ? html`` + ${imageUrl + ? html` + + ` + : html` + + `} + ${badge + ? html` + + ` : nothing}
-
-
- ${imageUrl - ? html` - - ` - : html` - - `} - ${badge - ? html` - - ` - : nothing} -
- -
+