Skip to content

Commit

Permalink
Use display contents in horizontal stack only (#21217)
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya authored Jun 28, 2024
1 parent 85865af commit beec720
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/panels/lovelace/cards/hui-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ export class HuiCard extends ReactiveElement {
private _listeners: MediaQueriesListener[] = [];

protected createRenderRoot() {
const style = document.createElement("style");
style.textContent = `hui-card { display: contents }`;
this.append(style);
return this;
}

Expand Down
3 changes: 3 additions & 0 deletions src/panels/lovelace/cards/hui-horizontal-stack-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ export class HuiHorizontalStackCard extends HuiStackCard {
height: 100%;
gap: var(--horizontal-stack-card-gap, var(--stack-card-gap, 8px));
}
#root > hui-card {
display: contents;
}
#root > hui-card > * {
flex: 1 1 0;
min-width: 0;
Expand Down

0 comments on commit beec720

Please sign in to comment.