+ ${this._config.chip?.type !== undefined
? html`
-
- ${this._config.chip?.type !== undefined
- ? html`
-
-
- ${this.hass!.localize(
- !this._cardEditorEl || this._GUImode
- ? "ui.panel.lovelace.editor.edit_card.show_code_editor"
- : "ui.panel.lovelace.editor.edit_card.show_visual_editor"
- )}
-
- ${this.hass!.localize(
- "ui.panel.lovelace.editor.card.conditional.change_type"
- )}
-
-
- `
- : html`
-
e.stopPropagation()}
- fixedMenuPosition
- naturalMenuWidth
- >
- ${CHIP_LIST.map(
- (chip) => html`
-
- ${customLocalize(
- `editor.chip.chip-picker.types.${chip}`
- )}
-
- `
- )}
-
- `}
-
+
+
+ ${this.hass!.localize(
+ !this._cardEditorEl || this._GUImode
+ ? "ui.panel.lovelace.editor.edit_card.show_code_editor"
+ : "ui.panel.lovelace.editor.edit_card.show_visual_editor"
+ )}
+
+ ${this.hass!.localize(
+ "ui.panel.lovelace.editor.card.conditional.change_type"
+ )}
+
+
`
: html`
-
+
e.stopPropagation()}
+ fixedMenuPosition
+ naturalMenuWidth
+ >
+ ${CHIP_LIST.map(
+ (chip) => html`
+
+ ${customLocalize(
+ `editor.chip.chip-picker.types.${chip}`
+ )}
+
+ `
+ )}
+
`}
- `;
+
+ `
+ : html`
+