mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
Various RTL fixes (#13268)
This commit is contained in:
parent
7501849044
commit
1acdc9cd6c
@ -52,6 +52,11 @@ export class HaSelect extends SelectBase {
|
|||||||
inset-inline-end: initial;
|
inset-inline-end: initial;
|
||||||
direction: var(--direction);
|
direction: var(--direction);
|
||||||
}
|
}
|
||||||
|
.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label {
|
||||||
|
inset-inline-start: 48px;
|
||||||
|
inset-inline-end: initial;
|
||||||
|
direction: var(--direction);
|
||||||
|
}
|
||||||
.mdc-select .mdc-select__anchor {
|
.mdc-select .mdc-select__anchor {
|
||||||
padding-inline-start: 12px;
|
padding-inline-start: 12px;
|
||||||
padding-inline-end: 0px;
|
padding-inline-end: 0px;
|
||||||
|
@ -206,6 +206,7 @@ class MoreInfoMediaPlayer extends LitElement {
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
--mdc-theme-primary: currentColor;
|
--mdc-theme-primary: currentColor;
|
||||||
|
direction: ltr;
|
||||||
}
|
}
|
||||||
|
|
||||||
.basic-controls {
|
.basic-controls {
|
||||||
@ -213,6 +214,15 @@ class MoreInfoMediaPlayer extends LitElement {
|
|||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.volume {
|
||||||
|
direction: ltr;
|
||||||
|
}
|
||||||
|
|
||||||
|
.source-input,
|
||||||
|
.sound-input {
|
||||||
|
direction: var(--direction);
|
||||||
|
}
|
||||||
|
|
||||||
.volume,
|
.volume,
|
||||||
.source-input,
|
.source-input,
|
||||||
.sound-input {
|
.sound-input {
|
||||||
@ -225,6 +235,9 @@ class MoreInfoMediaPlayer extends LitElement {
|
|||||||
.sound-input ha-select {
|
.sound-input ha-select {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
|
margin-inline-start: 10px;
|
||||||
|
margin-inline-end: initial;
|
||||||
|
direction: var(--direction);
|
||||||
}
|
}
|
||||||
|
|
||||||
.tts {
|
.tts {
|
||||||
|
@ -102,7 +102,7 @@ export class SystemLogCard extends LitElement {
|
|||||||
<paper-item @click=${this._openLog} .logItem=${item}>
|
<paper-item @click=${this._openLog} .logItem=${item}>
|
||||||
<paper-item-body two-line>
|
<paper-item-body two-line>
|
||||||
<div class="row">${item.message[0]}</div>
|
<div class="row">${item.message[0]}</div>
|
||||||
<div secondary>
|
<div class="row-secondary" secondary>
|
||||||
${this._timestamp(item)} –
|
${this._timestamp(item)} –
|
||||||
${html`(<span class=${item.level.toLowerCase()}
|
${html`(<span class=${item.level.toLowerCase()}
|
||||||
>${this.hass.localize(
|
>${this.hass.localize(
|
||||||
@ -209,6 +209,11 @@ export class SystemLogCard extends LitElement {
|
|||||||
.empty-content {
|
.empty-content {
|
||||||
direction: var(--direction);
|
direction: var(--direction);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.row-secondary {
|
||||||
|
direction: var(--direction);
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import "@material/mwc-button";
|
import "@material/mwc-button";
|
||||||
import { mdiHelpCircle } from "@mdi/js";
|
import { mdiHelpCircle } from "@mdi/js";
|
||||||
import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit";
|
import { CSSResultGroup, html, LitElement, TemplateResult } from "lit";
|
||||||
import { customElement, property, state } from "lit/decorators";
|
import { customElement, property, state } from "lit/decorators";
|
||||||
import { fireEvent } from "../../../common/dom/fire_event";
|
import { fireEvent } from "../../../common/dom/fire_event";
|
||||||
import { computeRTLDirection } from "../../../common/util/compute_rtl";
|
import { computeRTLDirection } from "../../../common/util/compute_rtl";
|
||||||
@ -197,14 +197,7 @@ export class HuiSaveConfig extends LitElement implements HassDialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static get styles(): CSSResultGroup {
|
static get styles(): CSSResultGroup {
|
||||||
return [
|
return [haStyleDialog];
|
||||||
haStyleDialog,
|
|
||||||
css`
|
|
||||||
ha-switch {
|
|
||||||
padding-bottom: 16px;
|
|
||||||
}
|
|
||||||
`,
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user