mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-23 20:28:47 +00:00
Add fallback for empty cards in sections view (#28565)
* Initial plan * Add edit-mode class to container in hui-grid-section to enable minimum card height Co-authored-by: piitaya <5878303+piitaya@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: piitaya <5878303+piitaya@users.noreply.github.com>
This commit is contained in:
@@ -99,7 +99,7 @@ export class GridSection extends LitElement implements LovelaceSectionElement {
|
|||||||
@item-removed=${this._cardRemoved}
|
@item-removed=${this._cardRemoved}
|
||||||
invert-swap
|
invert-swap
|
||||||
>
|
>
|
||||||
<div class="container">
|
<div class="container ${classMap({ "edit-mode": editMode })}">
|
||||||
${repeat(
|
${repeat(
|
||||||
cardsConfig,
|
cardsConfig,
|
||||||
(cardConfig) => this._getKey(cardConfig),
|
(cardConfig) => this._getKey(cardConfig),
|
||||||
|
|||||||
Reference in New Issue
Block a user