mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 08:16:36 +00:00
Visual alignment of automation and script more info dialogs (#8234)
This commit is contained in:
parent
cf43b26e14
commit
0a09ec706f
@ -57,7 +57,9 @@ class MoreInfoAutomation extends LitElement {
|
|||||||
}
|
}
|
||||||
.actions {
|
.actions {
|
||||||
margin: 8px 0;
|
margin: 8px 0;
|
||||||
text-align: right;
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
import { HassEntity } from "home-assistant-js-websocket";
|
import { HassEntity } from "home-assistant-js-websocket";
|
||||||
import {
|
import {
|
||||||
|
css,
|
||||||
|
CSSResult,
|
||||||
customElement,
|
customElement,
|
||||||
html,
|
html,
|
||||||
LitElement,
|
LitElement,
|
||||||
@ -21,10 +23,12 @@ class MoreInfoScript extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<div>
|
<div class="flex">
|
||||||
${this.hass.localize(
|
<div>
|
||||||
"ui.dialogs.more_info_control.script.last_triggered"
|
${this.hass.localize(
|
||||||
)}:
|
"ui.dialogs.more_info_control.script.last_triggered"
|
||||||
|
)}:
|
||||||
|
</div>
|
||||||
${this.stateObj.attributes.last_triggered
|
${this.stateObj.attributes.last_triggered
|
||||||
? html`
|
? html`
|
||||||
<ha-relative-time
|
<ha-relative-time
|
||||||
@ -36,6 +40,15 @@ class MoreInfoScript extends LitElement {
|
|||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static get styles(): CSSResult {
|
||||||
|
return css`
|
||||||
|
.flex {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user