From d01f1ca28e5698f363d36396aa7166e46badc1e8 Mon Sep 17 00:00:00 2001 From: Jacob Berelman <630000+stickpin@users.noreply.github.com> Date: Fri, 8 Mar 2024 19:31:03 +0100 Subject: [PATCH] fix once again --- src/stack-in-card.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stack-in-card.ts b/src/stack-in-card.ts index f4bd2ef..e5c4dfc 100644 --- a/src/stack-in-card.ts +++ b/src/stack-in-card.ts @@ -129,7 +129,7 @@ class StackInCard extends LitElement implements LovelaceCard { // if (element.shadowRoot.querySelector('stack-in-card')) return; const searchEles = element.shadowRoot.getElementById('root') || element.shadowRoot.getElementById('card'); if (!searchEles) return; - element.shadowRoot.getElementById('root').setAttribute('style', 'gap:var(--vertical-stack-card-gap,var(--stack-card-gap,0px)) !important'); + searchEles.setAttribute('style', 'gap:var(--vertical-stack-card-gap,var(--stack-card-gap,0px)) !important'); this._loopChildren(searchEles as LovelaceCard, withBg); } else { this._updateStyle(card, withBg);