Fix tooltip being cutoff in history panel (#16087)

This commit is contained in:
Bram Kragten 2023-04-06 14:39:53 +02:00 committed by GitHub
parent 0e8c280763
commit 56cc4e8d4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -276,7 +276,11 @@ export default class HaChartBase extends LitElement {
top: this.chart!.canvas.offsetTop + context.tooltip.caretY + 12 + "px",
left:
this.chart!.canvas.offsetLeft +
clamp(context.tooltip.caretX, 100, this.clientWidth - 100) -
clamp(
context.tooltip.caretX,
100,
this.clientWidth - 100 - this.paddingYAxis
) -
100 +
"px",
};

View File

@ -518,10 +518,6 @@ class HaPanelHistory extends SubscribeMixin(LitElement) {
padding-bottom: max(env(safe-area-inset-bottom), 16px);
}
state-history-charts {
overflow-x: hidden;
}
:host([virtualize]) {
height: 100%;
}