diff --git a/api/components/panel.mjs b/api/components/panel.mjs index 82ce3e3..3613372 100644 --- a/api/components/panel.mjs +++ b/api/components/panel.mjs @@ -215,7 +215,7 @@ async function createPanel() { await createViews(); const cursorListenerSelector = - '.notion-cursor-listener > :last-child[style^="position: absolute"]'; + '.notion-cursor-listener > .notion-sidebar-container ~ [style^="position: absolute"]'; await web.whenReady([cursorListenerSelector]); document.querySelector(cursorListenerSelector).before($hoverTrigger, $panel); }