From 344b11a2048f478f414102141e463a3c30b76352 Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Tue, 4 May 2021 14:18:02 +0200 Subject: [PATCH] Prevent not needed `
` in more-info-light (#9080) --- .../more-info/controls/more-info-light.ts | 109 ++++++++---------- 1 file changed, 51 insertions(+), 58 deletions(-) diff --git a/src/dialogs/more-info/controls/more-info-light.ts b/src/dialogs/more-info/controls/more-info-light.ts index 783506a762..daf66fc3f2 100644 --- a/src/dialogs/more-info/controls/more-info-light.ts +++ b/src/dialogs/more-info/controls/more-info-light.ts @@ -126,7 +126,6 @@ class MoreInfoLight extends LitElement { @change=${this._ctSliderChanged} pin > -
` : ""} ${supportsColor && (!supportsTemp || this._mode === "color") @@ -147,72 +146,66 @@ class MoreInfoLight extends LitElement { class="segmentationButton" > - - ${ - supportsRgbw || supportsRgbww - ? html`` + : ""} + ${supportsRgbw + ? html` + ` - : "" - } - ${ - supportsRgbw - ? html` - - ` - : "" - } - ${ - supportsRgbww - ? html` - - - ` - : "" - } -
+ > + ` + : ""} + ${supportsRgbww + ? html` + + + ` + : ""} ` : ""} ${supportsFeature(this.stateObj, SUPPORT_EFFECT) && this.stateObj!.attributes.effect_list?.length ? html` +