Search in Overflow on Mobile (#12552)

This commit is contained in:
Zack Barett 2022-05-03 06:17:47 -05:00 committed by GitHub
parent e8da203fe1
commit a5411f7ac4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 4 deletions

View File

@ -266,10 +266,14 @@ class HUIRoot extends LitElement {
</ha-tabs>
`
: html`<div main-title>${this.config.title}</div>`}
<ha-icon-button
.path=${mdiMagnify}
@click=${this._showQuickBar}
></ha-icon-button>
${!this.narrow
? html`
<ha-icon-button
.path=${mdiMagnify}
@click=${this._showQuickBar}
></ha-icon-button>
`
: ""}
${!this.narrow &&
this._conversation(this.hass.config.components)
? html`
@ -292,6 +296,28 @@ class HUIRoot extends LitElement {
)}
.path=${mdiDotsVertical}
></ha-icon-button>
${this.narrow
? html`
<mwc-list-item
.label=${this.hass!.localize(
"ui.panel.lovelace.menu.search"
)}
graphic="icon"
@request-selected=${this._showQuickBar}
>
<span
>${this.hass!.localize(
"ui.panel.lovelace.menu.search"
)}</span
>
<ha-svg-icon
slot="graphic"
.path=${mdiMagnify}
></ha-svg-icon>
</mwc-list-item>
`
: ""}
${this.narrow &&
this._conversation(this.hass.config.components)
? html`

View File

@ -3314,6 +3314,7 @@
"menu": {
"configure_ui": "Edit Dashboard",
"help": "Help",
"search": "Search",
"start_conversation": "Start conversation",
"reload_resources": "Reload resources",
"exit_edit_mode": "Done",