Compare commits

...

2 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
fc9a6edf82 Pass layout property to child cards in stack containers
Co-authored-by: MindFreeze <5219205+MindFreeze@users.noreply.github.com>
2025-11-10 10:00:53 +00:00
copilot-swe-agent[bot]
e38729cc5c Initial plan 2025-11-10 09:49:38 +00:00

View File

@@ -79,6 +79,11 @@ export abstract class HuiStackCard<T extends StackCardConfig = StackCardConfig>
this._errorCard.preview = this.preview;
}
}
if (changedProperties.has("layout")) {
this._cards.forEach((card) => {
card.layout = this.layout;
});
}
}
if (changedProperties.has("layout")) {
@@ -90,6 +95,7 @@ export abstract class HuiStackCard<T extends StackCardConfig = StackCardConfig>
const element = document.createElement("hui-card");
element.hass = this.hass;
element.preview = this.preview;
element.layout = this.layout;
element.config = cardConfig;
element.load();
return element;