mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +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[] = [];
|
||||
|
||||
protected createRenderRoot() {
|
||||
const style = document.createElement("style");
|
||||
style.textContent = `hui-card { display: contents }`;
|
||||
this.append(style);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user