Use display contents in horizontal stack only (#21217)

This commit is contained in:
Paul Bottein 2024-06-28 20:56:01 +02:00 committed by GitHub
parent 85865af0c3
commit beec720b9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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;