From 27379c98df8c5e9e91ebeef7fce931186f4b01bc Mon Sep 17 00:00:00 2001 From: ildar170975 <71872483+ildar170975@users.noreply.github.com> Date: Wed, 19 Mar 2025 09:46:14 +0300 Subject: [PATCH] history-graph: do not set "max-width" for a single legend item (#24683) * do not set "max-width" for a single legend item * prettier --- src/components/chart/ha-chart-base.ts | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/components/chart/ha-chart-base.ts b/src/components/chart/ha-chart-base.ts index bbf2fcacd7..f98856cf96 100644 --- a/src/components/chart/ha-chart-base.ts +++ b/src/components/chart/ha-chart-base.ts @@ -226,7 +226,12 @@ export class HaChartBase extends LitElement { const overflowLimit = isMobile ? LEGEND_OVERFLOW_LIMIT_MOBILE : LEGEND_OVERFLOW_LIMIT; - return html`