feat(search): add search results navigation bar, closes #1183 (#2842)

Add a floating navigation component that appears when search results exist.
The component includes:
   - Top bar: displays search term and current section with TOC and close buttons
   - Bottom bar: search results, previous, and next navigation buttons
   - Page-based navigation using isCfiInLocation to skip between pages with results
This commit is contained in:
Huang Xin
2026-01-03 08:10:23 +01:00
committed by GitHub
parent 730ee21651
commit a5e09e8454
39 changed files with 514 additions and 89 deletions
@@ -50,7 +50,13 @@ export const annotationToolButtons = createAnnotationToolButtons([
tooltip: _('Annotate text after selection'),
Icon: BsPencilSquare,
},
{ type: 'search', label: _('Search'), tooltip: _('Search text after selection'), Icon: FiSearch },
{
type: 'search',
label: _('Search'),
tooltip: _('Search text after selection'),
Icon: FiSearch,
quickAction: true,
},
{
type: 'dictionary',
label: _('Dictionary'),