fix: minor type and ui fixes, fix solid reactivity warning

This commit is contained in:
Samuel 2024-12-14 11:34:27 +01:00
parent cd4c5095e5
commit 82413a8212
4 changed files with 47 additions and 35 deletions

View file

@ -191,8 +191,8 @@ function showTooltip(context: ChartContext) {
const pos = context.chart.canvas.getBoundingClientRect();
el.style.opacity = "1";
el.style.position = "absolute";
el.style.left = `${pos.left + window.scrollX + model.caretX}px`;
el.style.top = `${pos.top + window.scrollY + model.caretY}px`;
el.style.left = `${(pos.left + window.scrollX + model.caretX).toString()}px`;
el.style.top = `${(pos.top + window.scrollY + model.caretY).toString()}px`;
el.style.pointerEvents = "none";
}