hui-graph-footer-editor: add margin to ha-switch to prevent a scrollbar (#25645)

* add padding-bottom to card-config to prevent a scrollbar

* revert padding for card-config

* add margin to ha-switch

* revert margin for ha-switch

* set margin for ha-switch
This commit is contained in:
ildar170975 2025-06-24 08:27:16 +03:00 committed by GitHub
parent dd64fa228c
commit 876e36b4e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,5 @@
import type { CSSResultGroup } from "lit";
import { html, LitElement, nothing } from "lit";
import { css, html, LitElement, nothing } from "lit";
import { customElement, property, state } from "lit/decorators";
import { assert } from "superstruct";
import type { HASSDomEvent } from "../../../../common/dom/fire_event";
@ -139,7 +139,14 @@ export class HuiGraphFooterEditor
}
static get styles(): CSSResultGroup {
return configElementStyle;
return [
configElementStyle,
css`
.card-config ha-switch {
margin: 1px 0;
}
`,
];
}
}