mirror of
https://github.com/home-assistant/frontend.git
synced 2026-04-02 00:27:49 +01:00
Gate blueprint search behind minimum blueprint amount (#30207)
* Gate blueprint search behind minimum blueprint amount * Remove top padding from search
This commit is contained in:
committed by
GitHub
parent
e67c4842d4
commit
b0b86e7ba8
@@ -160,13 +160,15 @@ class DialogNewAutomation extends LitElement {
|
||||
@closed=${this._dialogClosed}
|
||||
>
|
||||
<div class="content-wrapper">
|
||||
<search-input
|
||||
autofocus
|
||||
.hass=${this.hass}
|
||||
.filter=${this._filter}
|
||||
.label=${this.hass.localize("ui.common.search")}
|
||||
@value-changed=${this._handleSearchChange}
|
||||
></search-input>
|
||||
${processedBlueprints.length > 5
|
||||
? html`<search-input
|
||||
autofocus
|
||||
.hass=${this.hass}
|
||||
.filter=${this._filter}
|
||||
.label=${this.hass.localize("ui.common.search")}
|
||||
@value-changed=${this._handleSearchChange}
|
||||
></search-input>`
|
||||
: nothing}
|
||||
<ha-list>
|
||||
<ha-list-item
|
||||
hasmeta
|
||||
@@ -361,6 +363,7 @@ class DialogNewAutomation extends LitElement {
|
||||
}
|
||||
search-input {
|
||||
display: block;
|
||||
--ha-input-padding-top: 0;
|
||||
}
|
||||
.blueprints-list {
|
||||
overflow-y: auto;
|
||||
|
||||
Reference in New Issue
Block a user