From 876e36b4e0db1e89359c7068e76d1adf4d7643a9 Mon Sep 17 00:00:00 2001 From: ildar170975 <71872483+ildar170975@users.noreply.github.com> Date: Tue, 24 Jun 2025 08:27:16 +0300 Subject: [PATCH] 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 --- .../editor/config-elements/hui-graph-footer-editor.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/panels/lovelace/editor/config-elements/hui-graph-footer-editor.ts b/src/panels/lovelace/editor/config-elements/hui-graph-footer-editor.ts index 706f18177d..e3f49edc23 100644 --- a/src/panels/lovelace/editor/config-elements/hui-graph-footer-editor.ts +++ b/src/panels/lovelace/editor/config-elements/hui-graph-footer-editor.ts @@ -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; + } + `, + ]; } }