mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 05:57:54 +00:00
Search in Overflow on Mobile (#12552)
This commit is contained in:
parent
e8da203fe1
commit
a5411f7ac4
@ -266,10 +266,14 @@ class HUIRoot extends LitElement {
|
|||||||
</ha-tabs>
|
</ha-tabs>
|
||||||
`
|
`
|
||||||
: html`<div main-title>${this.config.title}</div>`}
|
: html`<div main-title>${this.config.title}</div>`}
|
||||||
<ha-icon-button
|
${!this.narrow
|
||||||
.path=${mdiMagnify}
|
? html`
|
||||||
@click=${this._showQuickBar}
|
<ha-icon-button
|
||||||
></ha-icon-button>
|
.path=${mdiMagnify}
|
||||||
|
@click=${this._showQuickBar}
|
||||||
|
></ha-icon-button>
|
||||||
|
`
|
||||||
|
: ""}
|
||||||
${!this.narrow &&
|
${!this.narrow &&
|
||||||
this._conversation(this.hass.config.components)
|
this._conversation(this.hass.config.components)
|
||||||
? html`
|
? html`
|
||||||
@ -292,6 +296,28 @@ class HUIRoot extends LitElement {
|
|||||||
)}
|
)}
|
||||||
.path=${mdiDotsVertical}
|
.path=${mdiDotsVertical}
|
||||||
></ha-icon-button>
|
></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.narrow &&
|
||||||
this._conversation(this.hass.config.components)
|
this._conversation(this.hass.config.components)
|
||||||
? html`
|
? html`
|
||||||
|
@ -3314,6 +3314,7 @@
|
|||||||
"menu": {
|
"menu": {
|
||||||
"configure_ui": "Edit Dashboard",
|
"configure_ui": "Edit Dashboard",
|
||||||
"help": "Help",
|
"help": "Help",
|
||||||
|
"search": "Search",
|
||||||
"start_conversation": "Start conversation",
|
"start_conversation": "Start conversation",
|
||||||
"reload_resources": "Reload resources",
|
"reload_resources": "Reload resources",
|
||||||
"exit_edit_mode": "Done",
|
"exit_edit_mode": "Done",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user