diff --git a/quartz/components/scripts/popover.inline.ts b/quartz/components/scripts/popover.inline.ts index 56d2c96..86cc885 100644 --- a/quartz/components/scripts/popover.inline.ts +++ b/quartz/components/scripts/popover.inline.ts @@ -23,7 +23,7 @@ async function mouseEnterHandler( middleware: [inline({ x: clientX, y: clientY }), shift(), flip()], }) Object.assign(popoverElement.style, { - transform: `translate(${x}px, ${y}px)`, + transform: `translate(${x.toFixed()}px, ${y.toFixed()}px)`, }) }