Mara-Li
2024-01-29 16adbd30114bfcc1aaefa851a5a1786787f97a10
quartz/components/scripts/popover.inline.ts
@@ -7,6 +7,10 @@
  { clientX, clientY }: { clientX: number; clientY: number },
) {
  const link = this
  if (link.dataset.noPopover === "true") {
    return
  }
  async function setPosition(popoverElement: HTMLElement) {
    const { x, y } = await computePosition(link, popoverElement, {
      middleware: [inline({ x: clientX, y: clientY }), shift(), flip()],