From 00934f21834be922aa0faf77096bce3fcd294153 Mon Sep 17 00:00:00 2001 From: ildar170975 <71872483+ildar170975@users.noreply.github.com> Date: Tue, 29 Oct 2024 11:57:02 +0300 Subject: [PATCH] Fix margins for disabled entities on a device card (#22576) Update ha-device-entities-card.ts --- .../devices/device-detail/ha-device-entities-card.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/panels/config/devices/device-detail/ha-device-entities-card.ts b/src/panels/config/devices/device-detail/ha-device-entities-card.ts index 71a8b0acdf12..9faf6d882f61 100644 --- a/src/panels/config/devices/device-detail/ha-device-entities-card.ts +++ b/src/panels/config/devices/device-detail/ha-device-entities-card.ts @@ -251,9 +251,7 @@ export class HaDeviceEntitiesCard extends LitElement { display: block; } ha-icon { - margin-left: 8px; - margin-inline-start: 8px; - margin-inline-end: initial; + margin-left: -8px; } .entity-id { color: var(--secondary-text-color); @@ -283,6 +281,9 @@ export class HaDeviceEntitiesCard extends LitElement { .name { font-size: 14px; } + .name:dir(rtl) { + margin-inline-start: 8px; + } .empty { text-align: center; }