mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
fix height of stats graph card in section (#25344)
This commit is contained in:
parent
92bf9b4979
commit
fe824062a5
@ -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%;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user