fix margin with ha form grid (#14240)

This commit is contained in:
Paul Bottein 2022-10-31 15:40:58 +01:00 committed by GitHub
parent effc9467c2
commit ebc0edac10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,11 +33,6 @@ export class HaFormGrid extends LitElement implements HaFormElement {
@property() public computeHelper?: (schema: HaFormSchema) => string;
protected firstUpdated(changedProps: PropertyValues) {
super.firstUpdated(changedProps);
this.setAttribute("own-margin", "");
}
protected updated(changedProps: PropertyValues): void {
super.updated(changedProps);
if (changedProps.has("schema")) {
@ -78,7 +73,8 @@ export class HaFormGrid extends LitElement implements HaFormElement {
var(--form-grid-column-count, auto-fit),
minmax(var(--form-grid-min-width, 200px), 1fr)
);
grid-gap: 8px;
grid-column-gap: 8px;
grid-row-gap: 24px;
}
:host > ha-form {
display: block;