[x] addressed by #8 fix issue where local builds take a long time presumably because hovercards are being recursively built
[x] addressed by #8 fix issue where local dev reloads add multiple levels of div.paragraph wrappers, which cause newlines to be insert before and after hovercard hyperlinks
[x] addressed by #8 prevent hovercards from appearing within hovercards; right now, whether a hovercard opens within a hovercard depends on which order the hovercards are inserted during the build process
[x] addressed by #8 design for case where user hovers over hoverlink inside an existing hovercard
[x] addressed by #7 prevent hovercards from appearing on mobile
improve hover UX
[x] addressed by #7 make the hover-link pseudo-element bigger
[x] addressed by #7 don't open hovercard when cursor is not near (or very close to) hyperlink
[x] addressed by #7 position hovercard above link if link is near bottom of viewport
[x] addressed by #7 similar to the above, position hovercard to the left if link is near right of viewport
[x] addressed by #11 make spacing offset (and its implementation) of hovercards consistent: same vertical and horizontal distance from link for all four positions of hovercards
[x] fixed by setting "Show scrollbars" only "When scrolling" on my Mac (see screenshot 2 below) hide ugly white scrollbar UI
[ ] consider changing behavior from on-hover, to on-click like the OG wiki
[ ] prevent flash when hovercard gets moved from default bottom right position to another position
[ ] use MutationObserver instead of IntersectionObserver to fix bug where hover-link at very bottom of page does not have hover card in view and thus is not in scope of IntersectionObserver
fix bugs
fix issue where local builds take a long time presumably because hovercards are being recursively builtfix issue where local dev reloads add multiple levels ofdiv.paragraph
wrappers, which cause newlines to be insert before and after hovercard hyperlinksprevent hovercards from appearing within hovercards; right now, whether a hovercard opens within a hovercard depends on which order the hovercards are inserted during the build processdesign for case where user hovers over hoverlink inside an existing hovercardprevent hovercards from appearing on mobileimprove hover UX
make the hover-link pseudo-element biggerdon't open hovercard when cursor is not near (or very close to) hyperlinkposition hovercard above link if link is near bottom of viewportsimilar to the above, position hovercard to the left if link is near right of viewportmake spacing offset (and its implementation) of hovercards consistent: same vertical and horizontal distance from link for all four positions of hovercardshide ugly white scrollbar UIMutationObserver
instead ofIntersectionObserver
to fix bug where hover-link at very bottom of page does not have hover card in view and thus is not in scope ofIntersectionObserver
other
screenshot 1
screenshot 2