mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-09 10:59:50 +00:00
RTL fixes (#12367)
This commit is contained in:
@@ -11,7 +11,6 @@ import {
|
||||
} from "lit";
|
||||
import { customElement, state } from "lit/decorators";
|
||||
import { fireEvent, HASSDomEvent } from "../../common/dom/fire_event";
|
||||
import { computeRTL } from "../../common/util/compute_rtl";
|
||||
import "../../components/ha-circular-progress";
|
||||
import "../../components/ha-dialog";
|
||||
import "../../components/ha-icon-button";
|
||||
@@ -261,7 +260,6 @@ class DataEntryFlowDialog extends LitElement {
|
||||
<ha-icon-button
|
||||
.label=${this.hass.localize("ui.common.help")}
|
||||
.path=${mdiHelpCircle}
|
||||
?rtl=${computeRTL(this.hass)}
|
||||
>
|
||||
</ha-icon-button
|
||||
></a>
|
||||
@@ -273,7 +271,6 @@ class DataEntryFlowDialog extends LitElement {
|
||||
)}
|
||||
.path=${mdiClose}
|
||||
dialogAction="close"
|
||||
?rtl=${computeRTL(this.hass)}
|
||||
></ha-icon-button>
|
||||
</div>
|
||||
${this._step === null
|
||||
@@ -521,7 +518,7 @@ class DataEntryFlowDialog extends LitElement {
|
||||
top: 0;
|
||||
right: 0;
|
||||
}
|
||||
.dialog-actions[rtl] {
|
||||
:host-context([style*="direction: rtl;"]) .dialog-actions {
|
||||
right: auto;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
@@ -194,6 +194,10 @@ class StepFlowForm extends LitElement {
|
||||
word-break: break-word;
|
||||
padding-right: 72px;
|
||||
}
|
||||
:host-context([style*="direction: rtl;"]) h2 {
|
||||
padding-right: auto !important;
|
||||
padding-left: 72px !important;
|
||||
}
|
||||
`,
|
||||
];
|
||||
}
|
||||
|
||||
@@ -106,6 +106,10 @@ class StepFlowPickFlow extends LitElement {
|
||||
h2 {
|
||||
padding-right: 66px;
|
||||
}
|
||||
:host-context([style*="direction: rtl;"]) h2 {
|
||||
padding-right: auto !important;
|
||||
padding-left: 66px !important;
|
||||
}
|
||||
@media all and (max-height: 900px) {
|
||||
div {
|
||||
max-height: calc(100vh - 134px);
|
||||
|
||||
@@ -313,6 +313,10 @@ class StepFlowPickHandler extends LitElement {
|
||||
h2 {
|
||||
padding-right: 66px;
|
||||
}
|
||||
:host-context([style*="direction: rtl;"]) h2 {
|
||||
padding-right: auto !important;
|
||||
padding-left: 66px !important;
|
||||
}
|
||||
@media all and (max-height: 900px) {
|
||||
mwc-list {
|
||||
max-height: calc(100vh - 134px);
|
||||
|
||||
Reference in New Issue
Block a user