mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
fix margin with ha form grid (#14240)
This commit is contained in:
parent
effc9467c2
commit
ebc0edac10
@ -33,11 +33,6 @@ export class HaFormGrid extends LitElement implements HaFormElement {
|
|||||||
|
|
||||||
@property() public computeHelper?: (schema: HaFormSchema) => string;
|
@property() public computeHelper?: (schema: HaFormSchema) => string;
|
||||||
|
|
||||||
protected firstUpdated(changedProps: PropertyValues) {
|
|
||||||
super.firstUpdated(changedProps);
|
|
||||||
this.setAttribute("own-margin", "");
|
|
||||||
}
|
|
||||||
|
|
||||||
protected updated(changedProps: PropertyValues): void {
|
protected updated(changedProps: PropertyValues): void {
|
||||||
super.updated(changedProps);
|
super.updated(changedProps);
|
||||||
if (changedProps.has("schema")) {
|
if (changedProps.has("schema")) {
|
||||||
@ -78,7 +73,8 @@ export class HaFormGrid extends LitElement implements HaFormElement {
|
|||||||
var(--form-grid-column-count, auto-fit),
|
var(--form-grid-column-count, auto-fit),
|
||||||
minmax(var(--form-grid-min-width, 200px), 1fr)
|
minmax(var(--form-grid-min-width, 200px), 1fr)
|
||||||
);
|
);
|
||||||
grid-gap: 8px;
|
grid-column-gap: 8px;
|
||||||
|
grid-row-gap: 24px;
|
||||||
}
|
}
|
||||||
:host > ha-form {
|
:host > ha-form {
|
||||||
display: block;
|
display: block;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user