From b15b57705755745101a0e42f212913239822ba3b Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Fri, 31 Jan 2025 09:42:51 +0100 Subject: [PATCH] Reduce chart height to 300px (#23979) --- src/components/chart/ha-chart-base.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/chart/ha-chart-base.ts b/src/components/chart/ha-chart-base.ts index aac85a0e01..59a77ea6c1 100644 --- a/src/components/chart/ha-chart-base.ts +++ b/src/components/chart/ha-chart-base.ts @@ -440,7 +440,7 @@ export class HaChartBase extends LitElement { } private _getDefaultHeight() { - return Math.max(this.clientWidth / 2, 400); + return Math.max(this.clientWidth / 2, 300); } private _handleZoomReset() { @@ -470,7 +470,7 @@ export class HaChartBase extends LitElement { } .chart-container { position: relative; - max-height: var(--chart-max-height, 400px); + max-height: var(--chart-max-height, 300px); } .chart { width: 100%;