mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Fix chart height (#24028)
This commit is contained in:
parent
bd74d39dd8
commit
44dcca9923
@ -540,7 +540,7 @@ export class HaChartBase extends LitElement {
|
||||
}
|
||||
.chart-container {
|
||||
position: relative;
|
||||
max-height: var(--chart-max-height, 300px);
|
||||
max-height: var(--chart-max-height, 350px);
|
||||
}
|
||||
.chart {
|
||||
width: 100%;
|
||||
|
@ -260,6 +260,7 @@ export class HuiHistoryGraphCard extends LitElement implements LovelaceCard {
|
||||
<div
|
||||
class="content ${classMap({
|
||||
"has-header": !!this._config.title,
|
||||
"has-rows": !!this._config.grid_options?.rows,
|
||||
})}"
|
||||
>
|
||||
${this._error
|
||||
@ -320,6 +321,9 @@ export class HuiHistoryGraphCard extends LitElement implements LovelaceCard {
|
||||
height: 100%;
|
||||
--timeline-top-margin: 16px;
|
||||
}
|
||||
.has-rows {
|
||||
--chart-max-height: 100%;
|
||||
}
|
||||
`;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user