mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
Remove padding (#11417)
This commit is contained in:
parent
614bd2f451
commit
b32438dc18
@ -198,24 +198,32 @@ export class QuickBar extends LitElement {
|
||||
size="small"
|
||||
active
|
||||
></ha-circular-progress>`
|
||||
: html`<mwc-list
|
||||
@rangechange=${this._handleRangeChanged}
|
||||
@keydown=${this._handleListItemKeyDown}
|
||||
@selected=${this._handleSelected}
|
||||
style=${styleMap({
|
||||
height: `${Math.min(
|
||||
items.length * (this._commandMode ? 56 : 72) + 26,
|
||||
this._done ? 500 : 0
|
||||
)}px`,
|
||||
})}
|
||||
>
|
||||
${scroll({
|
||||
items,
|
||||
layout: Layout1d,
|
||||
renderItem: (item: QuickBarItem, index) =>
|
||||
this._renderItem(item, index),
|
||||
})}
|
||||
</mwc-list>`}
|
||||
: items.length === 0
|
||||
? html`
|
||||
<div class="nothing-found">
|
||||
${this.hass.localize("ui.dialogs.quick-bar.nothing_found")}
|
||||
</div>
|
||||
`
|
||||
: html`
|
||||
<mwc-list
|
||||
@rangechange=${this._handleRangeChanged}
|
||||
@keydown=${this._handleListItemKeyDown}
|
||||
@selected=${this._handleSelected}
|
||||
style=${styleMap({
|
||||
height: `${Math.min(
|
||||
items.length * (this._commandMode ? 56 : 72) + 26,
|
||||
this._done ? 500 : 0
|
||||
)}px`,
|
||||
})}
|
||||
>
|
||||
${scroll({
|
||||
items,
|
||||
layout: Layout1d,
|
||||
renderItem: (item: QuickBarItem, index) =>
|
||||
this._renderItem(item, index),
|
||||
})}
|
||||
</mwc-list>
|
||||
`}
|
||||
${!this._narrow && this._hint
|
||||
? html`<div class="hint">${this._hint}</div>`
|
||||
: ""}
|
||||
@ -673,7 +681,6 @@ export class QuickBar extends LitElement {
|
||||
haStyleDialog,
|
||||
css`
|
||||
.heading {
|
||||
padding: 8px 20px 0px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
--mdc-theme-primary: var(--primary-text-color);
|
||||
@ -746,6 +753,12 @@ export class QuickBar extends LitElement {
|
||||
font-style: italic;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.nothing-found {
|
||||
padding: 16px 0px;
|
||||
font-size: 16px;
|
||||
text-align: center;
|
||||
}
|
||||
`,
|
||||
];
|
||||
}
|
||||
|
@ -628,7 +628,8 @@
|
||||
},
|
||||
"filter_placeholder": "Entity Filter",
|
||||
"title": "Quick Search",
|
||||
"key_c_hint": "Press 'c' on any page to open this search bar"
|
||||
"key_c_hint": "Press 'c' on any page to open this search bar",
|
||||
"nothing_found": "Nothing found!"
|
||||
},
|
||||
"voice_command": {
|
||||
"did_not_hear": "Home Assistant did not hear anything",
|
||||
|
Loading…
x
Reference in New Issue
Block a user