mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-31 21:17:47 +00:00
Fix buttons in zha
This commit is contained in:
parent
c263b80a0e
commit
bca812dbdb
@ -10,12 +10,12 @@ import {
|
|||||||
mdiPlusCircle,
|
mdiPlusCircle,
|
||||||
mdiRestore,
|
mdiRestore,
|
||||||
} from "@mdi/js";
|
} from "@mdi/js";
|
||||||
|
import type { HassEntity } from "home-assistant-js-websocket";
|
||||||
import type { CSSResultGroup, PropertyValues, TemplateResult } from "lit";
|
import type { CSSResultGroup, PropertyValues, TemplateResult } from "lit";
|
||||||
import { LitElement, css, html, nothing } from "lit";
|
import { LitElement, css, html, nothing } from "lit";
|
||||||
import { customElement, property, state } from "lit/decorators";
|
import { customElement, property, state } from "lit/decorators";
|
||||||
import { ifDefined } from "lit/directives/if-defined";
|
import { ifDefined } from "lit/directives/if-defined";
|
||||||
import memoizeOne from "memoize-one";
|
import memoizeOne from "memoize-one";
|
||||||
import type { HassEntity } from "home-assistant-js-websocket";
|
|
||||||
import { isComponentLoaded } from "../../../common/config/is_component_loaded";
|
import { isComponentLoaded } from "../../../common/config/is_component_loaded";
|
||||||
import { ASSIST_ENTITIES, SENSOR_ENTITIES } from "../../../common/const";
|
import { ASSIST_ENTITIES, SENSOR_ENTITIES } from "../../../common/const";
|
||||||
import { computeDeviceNameDisplay } from "../../../common/entity/compute_device_name";
|
import { computeDeviceNameDisplay } from "../../../common/entity/compute_device_name";
|
||||||
@ -770,6 +770,7 @@ export class HaConfigDevicePage extends LitElement {
|
|||||||
rel=${ifDefined(
|
rel=${ifDefined(
|
||||||
firstDeviceAction!.target ? "noreferrer" : undefined
|
firstDeviceAction!.target ? "noreferrer" : undefined
|
||||||
)}
|
)}
|
||||||
|
appearance="plain"
|
||||||
target=${ifDefined(firstDeviceAction!.target)}
|
target=${ifDefined(firstDeviceAction!.target)}
|
||||||
class=${ifDefined(firstDeviceAction!.classes)}
|
class=${ifDefined(firstDeviceAction!.classes)}
|
||||||
.action=${firstDeviceAction!.action}
|
.action=${firstDeviceAction!.action}
|
||||||
|
@ -12,8 +12,8 @@ import { css, html, LitElement, nothing } from "lit";
|
|||||||
import { customElement, property, state } from "lit/decorators";
|
import { customElement, property, state } from "lit/decorators";
|
||||||
import "../../../../../components/buttons/ha-progress-button";
|
import "../../../../../components/buttons/ha-progress-button";
|
||||||
import "../../../../../components/ha-alert";
|
import "../../../../../components/ha-alert";
|
||||||
import "../../../../../components/ha-card";
|
|
||||||
import "../../../../../components/ha-button";
|
import "../../../../../components/ha-button";
|
||||||
|
import "../../../../../components/ha-card";
|
||||||
import "../../../../../components/ha-fab";
|
import "../../../../../components/ha-fab";
|
||||||
import "../../../../../components/ha-form/ha-form";
|
import "../../../../../components/ha-form/ha-form";
|
||||||
import "../../../../../components/ha-icon-button";
|
import "../../../../../components/ha-icon-button";
|
||||||
@ -427,6 +427,11 @@ class ZHAConfigDashboard extends LitElement {
|
|||||||
max-width: 500px;
|
max-width: 500px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ha-card .card-actions {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
.network-settings ha-settings-row {
|
.network-settings ha-settings-row {
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user