mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Use display contents in horizontal stack only (#21217)
This commit is contained in:
parent
85865af0c3
commit
beec720b9b
@ -45,9 +45,6 @@ export class HuiCard extends ReactiveElement {
|
|||||||
private _listeners: MediaQueriesListener[] = [];
|
private _listeners: MediaQueriesListener[] = [];
|
||||||
|
|
||||||
protected createRenderRoot() {
|
protected createRenderRoot() {
|
||||||
const style = document.createElement("style");
|
|
||||||
style.textContent = `hui-card { display: contents }`;
|
|
||||||
this.append(style);
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,6 +30,9 @@ export class HuiHorizontalStackCard extends HuiStackCard {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
gap: var(--horizontal-stack-card-gap, var(--stack-card-gap, 8px));
|
gap: var(--horizontal-stack-card-gap, var(--stack-card-gap, 8px));
|
||||||
}
|
}
|
||||||
|
#root > hui-card {
|
||||||
|
display: contents;
|
||||||
|
}
|
||||||
#root > hui-card > * {
|
#root > hui-card > * {
|
||||||
flex: 1 1 0;
|
flex: 1 1 0;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user