mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix tooltip being cutoff in history panel (#16087)
This commit is contained in:
parent
0e8c280763
commit
56cc4e8d4d
@ -276,7 +276,11 @@ export default class HaChartBase extends LitElement {
|
|||||||
top: this.chart!.canvas.offsetTop + context.tooltip.caretY + 12 + "px",
|
top: this.chart!.canvas.offsetTop + context.tooltip.caretY + 12 + "px",
|
||||||
left:
|
left:
|
||||||
this.chart!.canvas.offsetLeft +
|
this.chart!.canvas.offsetLeft +
|
||||||
clamp(context.tooltip.caretX, 100, this.clientWidth - 100) -
|
clamp(
|
||||||
|
context.tooltip.caretX,
|
||||||
|
100,
|
||||||
|
this.clientWidth - 100 - this.paddingYAxis
|
||||||
|
) -
|
||||||
100 +
|
100 +
|
||||||
"px",
|
"px",
|
||||||
};
|
};
|
||||||
|
@ -518,10 +518,6 @@ class HaPanelHistory extends SubscribeMixin(LitElement) {
|
|||||||
padding-bottom: max(env(safe-area-inset-bottom), 16px);
|
padding-bottom: max(env(safe-area-inset-bottom), 16px);
|
||||||
}
|
}
|
||||||
|
|
||||||
state-history-charts {
|
|
||||||
overflow-x: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
:host([virtualize]) {
|
:host([virtualize]) {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user