diff --git a/src/panels/developer-tools/event/developer-tools-event.js b/src/panels/developer-tools/event/developer-tools-event.js index e4ec6e3509..b4925bf130 100644 --- a/src/panels/developer-tools/event/developer-tools-event.js +++ b/src/panels/developer-tools/event/developer-tools-event.js @@ -56,6 +56,9 @@ class HaPanelDevEvent extends EventsMixin(LocalizeMixin(PolymerElement)) { .code-editor { margin-right: 16px; + margin-inline-start: initial; + margin-inline-end: 16px; + direction: var(--direction); } .header { @@ -65,6 +68,9 @@ class HaPanelDevEvent extends EventsMixin(LocalizeMixin(PolymerElement)) { event-subscribe-card { display: block; margin: 16px 16px 0 0; + margin-inline-start: initial; + margin-inline-end: 16px; + direction: var(--direction); } a { diff --git a/src/panels/developer-tools/statistics/developer-tools-statistics.ts b/src/panels/developer-tools/statistics/developer-tools-statistics.ts index 7329e5dc66..7dee426178 100644 --- a/src/panels/developer-tools/statistics/developer-tools-statistics.ts +++ b/src/panels/developer-tools/statistics/developer-tools-statistics.ts @@ -25,6 +25,7 @@ import { haStyle } from "../../../resources/styles"; import { HomeAssistant } from "../../../types"; import { showStatisticsAdjustSumDialog } from "./show-dialog-statistics-adjust-sum"; import { showFixStatisticsUnitsChangedDialog } from "./show-dialog-statistics-fix-units-changed"; +import { computeRTLDirection } from "../../../common/util/compute_rtl"; const FIX_ISSUES_ORDER = { no_state: 0, @@ -74,6 +75,7 @@ class HaPanelDevStatistics extends SubscribeMixin(LitElement) { sortable: true, filterable: true, width: "10%", + forceLTR: true, }, source: { title: "Source", @@ -143,6 +145,7 @@ class HaPanelDevStatistics extends SubscribeMixin(LitElement) { id="statistic_id" clickable @row-click=${this._rowClicked} + .dir=${computeRTLDirection(this.hass)} > `; } diff --git a/src/panels/developer-tools/template/developer-tools-template.ts b/src/panels/developer-tools/template/developer-tools-template.ts index e686fbbdec..73cb338117 100644 --- a/src/panels/developer-tools/template/developer-tools-template.ts +++ b/src/panels/developer-tools/template/developer-tools-template.ts @@ -257,6 +257,9 @@ class HaPanelDevTemplate extends LitElement { .edit-pane { margin-right: 16px; + margin-inline-start: initial; + margin-inline-end: 16px; + direction: var(--direction); } .edit-pane a {