Reduce chart height to 300px (#23979)

This commit is contained in:
Paul Bottein 2025-01-31 09:42:51 +01:00 committed by GitHub
parent 653aeae3d8
commit b15b577057
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -440,7 +440,7 @@ export class HaChartBase extends LitElement {
} }
private _getDefaultHeight() { private _getDefaultHeight() {
return Math.max(this.clientWidth / 2, 400); return Math.max(this.clientWidth / 2, 300);
} }
private _handleZoomReset() { private _handleZoomReset() {
@ -470,7 +470,7 @@ export class HaChartBase extends LitElement {
} }
.chart-container { .chart-container {
position: relative; position: relative;
max-height: var(--chart-max-height, 400px); max-height: var(--chart-max-height, 300px);
} }
.chart { .chart {
width: 100%; width: 100%;