Skip to content

Commit c214a3b

Browse files
authored
Version 0.0.9
Merge pull request ofekashery#35 from custom-cards/dev
2 parents aaa0da9 + 7f3dab6 commit c214a3b

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ mv vertical-stack-in-card.js /config/www/
2727

2828
```yaml
2929
resources:
30-
- url: /local/vertical-stack-in-card.js?v=0.0.8
30+
- url: /local/vertical-stack-in-card.js?v=0.0.9
3131
type: js
3232
```
3333

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.8
1+
0.0.9

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 0.0.9
2+
- Closing issue [#34](https://github.com/custom-cards/vertical-stack-in-card/issues/34)
3+
14
## 0.0.8
25
- Closing issue [#21](https://github.com/custom-cards/vertical-stack-in-card/issues/21), [#24](https://github.com/custom-cards/vertical-stack-in-card/issues/24)
36

vertical-stack-in-card.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,19 @@ class VerticalStackInCard extends HTMLElement {
8080
element.shadowRoot.querySelector('ha-card').style.boxShadow = 'none';
8181
}
8282
} else {
83+
if (typeof element.querySelector === 'function' && element.querySelector('ha-card')) {
84+
element.querySelector('ha-card').style.boxShadow = 'none';
85+
}
8386
let searchEles = element.childNodes;
8487
for (let i = 0; i < searchEles.length; i++) {
85-
searchEles[i].style.margin = "0px";
88+
if (searchEles[i] && searchEles[i].style) {
89+
searchEles[i].style.margin = "0px";
90+
}
8691
this._card(searchEles[i]);
8792
}
8893
}
8994
}
90-
95+
9196
getCardSize() {
9297
let totalSize = 0;
9398
this._refCards.forEach((element) => {

0 commit comments

Comments
 (0)