fix height of stats graph card in section (#25344)

This commit is contained in:
Bram Kragten 2025-05-07 07:11:34 +02:00
parent 7d3a7fa1db
commit 12bbba1bff

View File

@ -268,6 +268,7 @@ export class HuiStatisticsGraphCard extends LitElement implements LovelaceCard {
<div
class="content ${classMap({
"has-header": !!this._config.title,
"has-rows": !!this._config.grid_options?.rows,
})}"
>
<statistics-chart
@ -389,6 +390,9 @@ export class HuiStatisticsGraphCard extends LitElement implements LovelaceCard {
statistics-chart {
height: 100%;
}
.has-rows {
--chart-max-height: 100%;
}
`;
}