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

This commit is contained in:
Bram Kragten 2025-05-07 07:11:34 +02:00 committed by GitHub
parent 92bf9b4979
commit fe824062a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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