Commit Graph

27 Commits

Author SHA1 Message Date
Jacky Zhao
d25c680f9b fix(popover): properly clear popover on racing fetch 2025-04-21 23:55:38 -07:00
Jacky Zhao
95680d9fa8 fix(popover): clear popovers more aggressively, use href as id 2025-04-11 08:18:28 -07:00
Jacky Zhao
e0cdac272c fix(popover): popover id calculation + scroll consistency 2025-04-10 16:46:30 -07:00
Jacky Zhao
6d2d7b47cc fix: add proper popover hint to tag content page 2025-04-10 16:28:36 -07:00
Emile Bangma
a852d37b13 fix(popover): round coords remove blurred popovers (#1911) 2025-04-07 00:23:49 +02:00
Jacky Zhao
7016ff3262 chore(css): style tweaks for overflow 2025-04-05 11:38:50 -07:00
1 gal Rosemary
0cf5bd4a9e fix(css): styles issues with popover, overflow, and scroll overflow (#1907)
* fix(style): fix toc overflow & scrolling overflow

* fix(style): fix explorer scrolling overflow

* fix(style): fix backlinks overflow & scrolling overflow

* fix(style): resolve popover overflow issue causing incomplete display

* chore: rename function to enhance readability

* fix(popover): make the backlink's id unique & use translate() instead of translateY()
2025-04-05 10:39:28 -07:00
Emile Bangma
46d3284ee7 fix(popover): automatically position anchored links properly (#1897)
* fix(popover): automatically position heading links at heading

* Impement linking of blockreferences

* Popover fixes

* id mapping

* Remove excess regexes

* Updated blockref

* Remove linker element

* Restore the docs to their former glory

* Move the hash out of the loop

* Redundant

* Redundant

* Restore docs

* Remove log

* Let it const
2025-04-05 10:31:17 -07:00
Jacky Zhao
25efe7d6b8 fix(popovers): clear id to avoid anchor jumps within popover 2025-03-10 00:08:06 -07:00
Anton Bulakh
57a65323c7 fix(spa): handle HTML redirects for aliases (#1680) 2024-12-27 07:18:22 -07:00
Cao Mingjun
6fecfd8a8e Fix Non-English Anchor Popover Positioning Issue and Update Type Hint (#1252)
- [Major] Changed `hash` passed to `querySelector` to `decodeURIComponent(hash)` to fix the issue where non-English anchors were not correctly positioning the popover content to the corresponding title.
- [Minor] Updated the type hint from `HTMLLinkElement` to `HTMLAnchorElement` as the passed element is an `<a>` element, not a `<link>` element (reference: https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement).
2024-07-08 13:34:43 -07:00
Aaron Pham
0df7de41d1 chore(img): return targetUrl as given href (#916)
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2024-02-22 21:55:35 -08:00
Aaron Pham
d9698cbb30 feat(popover): add support for PDF (#913)
* feat(popover): add support for PDF

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>

* chore: split pdf by ';'

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>

* fix: remove unnecessary check

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>

---------

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2024-02-22 22:16:40 -05:00
David Fischer
4ab53b8eee Add support for image popovers (#854)
* feat(popover): Add support for images

* fix: run prettier

* feat(popover): use switch logic for content types & adjust styles

* feat(popover): Add content type data tag for popover-inner class
2024-02-14 15:41:13 -05:00
Jacky Zhao
e979288b41 chore: add window.addCleanup() for cleaning up handlers 2024-02-01 21:19:51 -08:00
Jacky Zhao
81a327f1e7 fix: don't show popovers on heading anchors 2023-12-03 09:22:16 -08:00
Jacky Zhao
f3fd66f651 feat: allow popovers on intrapage links (closes #243) 2023-12-01 09:00:47 -08:00
Jacky Zhao
22fc06fb31 fix: spa shouldn't use popover script directly 2023-11-18 18:46:58 -08:00
Jacky Zhao
516a083506 fix: include anchor when normalizing urls for spa/popovers 2023-11-15 20:35:45 -08:00
Jacky Zhao
cee53ca69d fix: check if popover exists after fetching and before inserting 2023-11-11 20:46:57 -08:00
Jacky Zhao
617ea80db1 run prettier 2023-07-22 17:27:41 -07:00
Jacky Zhao
1547c8af0d fix indexing causing main thread freeze, various polish 2023-07-04 10:08:32 -07:00
Jacky Zhao
20b2d88a06 various polish 2023-07-02 13:08:29 -07:00
Jacky Zhao
fc03f3dcec fix: parsing wikilinks that have codeblock anchors, scroll to anchor 2023-06-19 22:50:25 -07:00
Jacky Zhao
1c7b5c88d8 basic search implementation 2023-06-19 20:37:45 -07:00
Jacky Zhao
2a9ed21823 local and global graph 2023-06-18 10:47:07 -07:00
Jacky Zhao
d5b51a8e29 popovers 2023-06-17 16:05:46 -07:00