From d52d1c308568c90607d3ace95a56173f392d5480 Mon Sep 17 00:00:00 2001 From: MHA Date: Mon, 20 Jul 2020 15:20:18 +0200 Subject: [PATCH] fix(editor): workaround for editor switch labels not showing --- src/editor.ts | 12 +++++++++--- src/select-list-card.ts | 1 - 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/editor.ts b/src/editor.ts index 0037a0b..8639ab5 100644 --- a/src/editor.ts +++ b/src/editor.ts @@ -133,8 +133,9 @@ export class SelectListCardEditor extends LitElement implements LovelaceCardEdit .checked=${this._truncate} .configValue=${'truncate'} @change=${this._valueChanged} - >${localize('editor.truncate')} + + ${localize('editor.show_toggle')}
${localize('editor.scroll_to_selected')} + + ${localize('editor.scroll_to_selected')}
${localize('editor.show_toggle')} + + ${localize('editor.show_toggle')}
@@ -203,6 +206,9 @@ export class SelectListCardEditor extends LitElement implements LovelaceCardEdit flex: 1; padding-right: 4px; } + .switch-label { + margin-left: 10px; + } `; } } diff --git a/src/select-list-card.ts b/src/select-list-card.ts index b995721..3bee9ad 100644 --- a/src/select-list-card.ts +++ b/src/select-list-card.ts @@ -51,7 +51,6 @@ export class SelectListCard extends LitElement implements LovelaceCard { const dummy = hass; return { entity: entity || '', - name: '', icon: '', truncate: true, show_toggle: false,