Reduce chart height to 300px (#23979)

This commit is contained in:
Paul Bottein 2025-01-31 09:42:51 +01:00 committed by Bram Kragten
parent f44c5d7a63
commit 251e6399f5

View File

@ -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%;