From a5411f7ac4cf205241cc76aac39e9686cbfa876a Mon Sep 17 00:00:00 2001 From: Zack Barett Date: Tue, 3 May 2022 06:17:47 -0500 Subject: [PATCH] Search in Overflow on Mobile (#12552) --- src/panels/lovelace/hui-root.ts | 34 +++++++++++++++++++++++++++++---- src/translations/en.json | 1 + 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/src/panels/lovelace/hui-root.ts b/src/panels/lovelace/hui-root.ts index 0f92dcec8e..83e2ebdfd6 100644 --- a/src/panels/lovelace/hui-root.ts +++ b/src/panels/lovelace/hui-root.ts @@ -266,10 +266,14 @@ class HUIRoot extends LitElement { ` : html`
${this.config.title}
`} - + ${!this.narrow + ? html` + + ` + : ""} ${!this.narrow && this._conversation(this.hass.config.components) ? html` @@ -292,6 +296,28 @@ class HUIRoot extends LitElement { )} .path=${mdiDotsVertical} > + + ${this.narrow + ? html` + + ${this.hass!.localize( + "ui.panel.lovelace.menu.search" + )} + + + ` + : ""} ${this.narrow && this._conversation(this.hass.config.components) ? html` diff --git a/src/translations/en.json b/src/translations/en.json index 257b9e6609..f6c1e3d728 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -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",