mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-29 20:26:39 +00:00
Fix layout of domain toggler dialog (#6771)
This commit is contained in:
parent
8e506f7749
commit
57763ef032
@ -10,8 +10,8 @@ import {
|
|||||||
} from "lit-element";
|
} from "lit-element";
|
||||||
import { fireEvent } from "../../common/dom/fire_event";
|
import { fireEvent } from "../../common/dom/fire_event";
|
||||||
import { createCloseHeading } from "../../components/ha-dialog";
|
import { createCloseHeading } from "../../components/ha-dialog";
|
||||||
import "../../components/ha-switch";
|
|
||||||
import "../../components/ha-formfield";
|
import "../../components/ha-formfield";
|
||||||
|
import "../../components/ha-switch";
|
||||||
import { domainToName } from "../../data/integration";
|
import { domainToName } from "../../data/integration";
|
||||||
import { haStyleDialog } from "../../resources/styles";
|
import { haStyleDialog } from "../../resources/styles";
|
||||||
import { HomeAssistant } from "../../types";
|
import { HomeAssistant } from "../../types";
|
||||||
@ -68,7 +68,9 @@ class DomainTogglerDialog extends LitElement implements HassDialog {
|
|||||||
</ha-switch>
|
</ha-switch>
|
||||||
</ha-formfield>
|
</ha-formfield>
|
||||||
<mwc-button .domain=${domain[1]} @click=${this._handleReset}>
|
<mwc-button .domain=${domain[1]} @click=${this._handleReset}>
|
||||||
${this.hass.localize("ui.dialogs.domain_toggler.reset_entities")}
|
${this.hass.localize(
|
||||||
|
"ui.dialogs.domain_toggler.reset_entities"
|
||||||
|
)}
|
||||||
</mwc-button>
|
</mwc-button>
|
||||||
`
|
`
|
||||||
)}
|
)}
|
||||||
@ -96,7 +98,8 @@ class DomainTogglerDialog extends LitElement implements HassDialog {
|
|||||||
}
|
}
|
||||||
div {
|
div {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: auto auto auto;
|
grid-template-columns: auto auto;
|
||||||
|
grid-row-gap: 8px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user