[2.0.2] feat: Add BibTeX syntax highlighting and polish mobile UX#39
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Before: BibTeX citations were monochrome text blobs in both the
article cite panel and the footer. Switching formats hard-swapped
with no transition. The nav search button did nothing on mobile.
The floating filter FAB covered the footer citation block on
short scrolls.
After: BibTeX entries get colored syntax — types, keys, delimiters
each get their own class — shared through a single formatBibtexHtml
function so article and footer rendering never drift. Format
switching crossfades. Copy tooltip confirms which format was grabbed
("BibTeX copied" / "APA copied").
On mobile, the nav search button closes the hamburger menu (if open)
and opens the filter bottom sheet with the search input focused.
Keyboard shortcut / does the same via open-mobile-search custom
event. The filter FAB fades out when the footer enters the viewport
via IntersectionObserver. Engagement bar groups Share + Cite in a
centered row instead of stacking everything vertically with full-
width separators. Share dropdown centers itself within viewport
bounds instead of overflowing off-screen.
Also:
- Fix article content overflow on narrow viewports (min-width: 0)
- CatalogHero trust badge: text-wrap balance, span wrapper to
prevent icon reflowing into wrapped text
- BrowseNav wraps on small screens, dots hidden
- Footer copyright name links to author profile
- Feedback follow-up animates with opacity instead of display toggle
- Extract shared E2E helpers to tests/e2e/helpers.ts
- Fix webkit test failures in 404 suggestion link navigation
- Fix analytics-consent race condition: await astro:page-load
- Mark axe-core a11y tests as test.slow() to stop CI flakes
- Add CHANGELOG entry for 2.0.2
0dd35b2 to
1928f43
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before: BibTeX citations were monochrome text blobs in both the article cite panel and the footer. Switching formats hard-swapped with no transition. The nav search button did nothing on mobile. The floating filter FAB covered the footer citation block on short scrolls.
After: BibTeX entries get colored syntax — types, keys, delimiters each get their own class — shared through a single formatBibtexHtml function so article and footer rendering never drift. Format switching crossfades. Copy tooltip confirms which format was grabbed ("BibTeX copied" / "APA copied").
On mobile, the nav search button closes the hamburger menu (if open) and opens the filter bottom sheet with the search input focused. Keyboard shortcut / does the same via open-mobile-search custom event. The filter FAB fades out when the footer enters the viewport via IntersectionObserver. Engagement bar groups Share + Cite in a centered row instead of stacking everything vertically with full- width separators. Share dropdown centers itself within viewport bounds instead of overflowing off-screen.
Also: