mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +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",
|
||||
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",
|
||||
};
|
||||
|
@ -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%;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user