Add toolbars and mobile headers + layout tweaks (#4803)

* Add toolbars and mobile headers + layout tweaks

* Comments
This commit is contained in:
Bram Kragten
2020-02-13 19:53:48 +01:00
committed by GitHub
parent c93e1b0123
commit 7903541689
14 changed files with 855 additions and 430 deletions

View File

@@ -63,7 +63,11 @@ export class HaScriptEditor extends LitElement {
@click=${this._deleteConfirm}
></paper-icon-button>
`}
${this.narrow
? html`
<span slot="header">${this._config?.alias}</span>
`
: ""}
<div class="content">
${this._errors
? html`
@@ -78,7 +82,11 @@ export class HaScriptEditor extends LitElement {
${this._config
? html`
<ha-config-section .isWide=${this.isWide}>
<span slot="header">${this._config.alias}</span>
${!this.narrow
? html`
<span slot="header">${this._config.alias}</span>
`
: ""}
<span slot="introduction">
${this.hass.localize(
"ui.panel.config.script.editor.introduction"