Fix header mobile automation editor (#13534)

This commit is contained in:
Bram Kragten 2022-08-31 17:42:00 +02:00 committed by GitHub
parent fee1092a08
commit be0c22d7ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 10 deletions

View File

@ -513,7 +513,7 @@ export default class HaAutomationActionRow extends LitElement {
@media (min-width: 870px) {
.action-icon {
display: inline-block;
color: var(--primary-color);
color: var(--secondary-text-color);
opacity: 0.9;
margin-right: 8px;
}

View File

@ -429,7 +429,7 @@ export default class HaAutomationConditionRow extends LitElement {
@media (min-width: 870px) {
.condition-icon {
display: inline-block;
color: var(--primary-color);
color: var(--secondary-text-color);
opacity: 0.9;
margin-right: 8px;
}

View File

@ -230,6 +230,14 @@ export class HaAutomationEditor extends KeyboardShortcutMixin(LitElement) {
${this._config
? html`
${this.narrow
? html`<span slot="header"
>${this._config!.alias ||
this.hass.localize(
"ui.panel.config.automation.editor.default_name"
)}</span
>`
: ""}
<div
class="content ${classMap({
"yaml-mode": this._mode === "yaml",
@ -242,12 +250,7 @@ export class HaAutomationEditor extends KeyboardShortcutMixin(LitElement) {
${this._mode === "gui"
? html`
${this.narrow
? html`<span slot="header"
>${this._config!.alias ||
this.hass.localize(
"ui.panel.config.automation.editor.default_name"
)}</span
>`
? ""
: html`
<div class="header-name">
<h1>

View File

@ -319,7 +319,7 @@ export class HaManualAutomationEditor extends LitElement {
@media (min-width: 870px) {
.settings-icon {
display: inline-block;
color: var(--primary-color);
color: var(--secondary-text-color);
opacity: 0.9;
margin-right: 8px;
}

View File

@ -538,7 +538,7 @@ export default class HaAutomationTriggerRow extends LitElement {
@media (min-width: 870px) {
.trigger-icon {
display: inline-block;
color: var(--primary-color);
color: var(--secondary-text-color);
opacity: 0.9;
margin-right: 8px;
}