Fix some RTL aligments (#16252)

This commit is contained in:
Yosi Levy 2023-04-20 18:05:24 +03:00 committed by GitHub
parent ea0f29782d
commit a43f49f4af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 0 deletions

View File

@ -211,6 +211,7 @@ export class Gauge extends LitElement {
font-size: 50px; font-size: 50px;
fill: var(--primary-text-color); fill: var(--primary-text-color);
text-anchor: middle; text-anchor: middle;
direction: ltr;
} }
`; `;
} }

View File

@ -569,6 +569,7 @@ class MoreInfoViewLightColorPicker extends LitElement {
line-height: 24px; line-height: 24px;
letter-spacing: 0.1px; letter-spacing: 0.1px;
margin: 0; margin: 0;
direction: ltr;
} }
.color-temp { .color-temp {

View File

@ -1,3 +1,4 @@
import { css, CSSResultGroup } from "lit";
import { HassEntity } from "home-assistant-js-websocket/dist/types"; import { HassEntity } from "home-assistant-js-websocket/dist/types";
import { customElement } from "lit/decorators"; import { customElement } from "lit/decorators";
import { computeDomain } from "../../../common/entity/compute_domain"; import { computeDomain } from "../../../common/entity/compute_domain";
@ -70,6 +71,18 @@ class HuiSensorCard extends HuiEntityCard {
super.setConfig(entityCardConfig); super.setConfig(entityCardConfig);
} }
static get styles(): CSSResultGroup {
return [
HuiEntityCard.styles,
css`
.info {
direction: ltr;
text-align: var(--float-start);
}
`,
];
}
} }
declare global { declare global {