diff --git a/src/panels/lovelace/editor/card-editor/hui-edit-card.ts b/src/panels/lovelace/editor/card-editor/hui-edit-card.ts index b11007465f..7c8998aa21 100644 --- a/src/panels/lovelace/editor/card-editor/hui-edit-card.ts +++ b/src/panels/lovelace/editor/card-editor/hui-edit-card.ts @@ -453,8 +453,7 @@ export class HuiEditCard extends LitElement { flex: auto; } .content hui-card-preview { - margin-top: 0; - margin-left: 24px; + margin: 0 24px; flex: 490px; max-width: 490px; } diff --git a/src/panels/lovelace/hui-root.ts b/src/panels/lovelace/hui-root.ts index 37e839cc83..043c61e784 100644 --- a/src/panels/lovelace/hui-root.ts +++ b/src/panels/lovelace/hui-root.ts @@ -168,7 +168,9 @@ class HUIRoot extends LitElement { slot="dropdown-content" > Raw config editor${this.hass!.localize( + "ui.panel.lovelace.editor.menu.raw_editor" + )} @@ -206,19 +208,27 @@ class HUIRoot extends LitElement { ${this._yamlMode ? html` Refresh${this.hass!.localize( + "ui.panel.lovelace.menu.refresh" + )} ` : ""} Unused entities${this.hass!.localize( + "ui.panel.lovelace.menu.unused_entities" + )} ${this.hass!.localize( - "ui.panel.lovelace.editor.configure_ui" + "ui.panel.lovelace.menu.configure_ui" + )} + ${this.hass!.localize( + "ui.panel.lovelace.menu.help" )} - Help diff --git a/src/translations/en.json b/src/translations/en.json index 778a4258d4..6f92dbc9ba 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -823,9 +823,17 @@ "add_item": "Add item" } }, + "menu": { + "configure_ui": "Configure UI", + "unused_entities": "Unused entities", + "help": "Help", + "refresh": "Refresh" + }, "editor": { "header": "Edit UI", - "configure_ui": "Configure UI", + "menu": { + "raw_editor": "Raw config editor" + }, "edit_view": { "header": "View Configuration", "add": "Add view", diff --git a/src/translations/translationMetadata.json b/src/translations/translationMetadata.json index 3ea02c95d4..2a1c2db7b4 100644 --- a/src/translations/translationMetadata.json +++ b/src/translations/translationMetadata.json @@ -1,6 +1,7 @@ { "ar": { - "nativeName": "العربية" + "nativeName": "العربية", + "isRTL": true }, "bg": { "nativeName": "Български"