Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 12 additions & 46 deletions search_interface/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions search_interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.1",
"@mui/icons-material": "^7.3.1",
"@mui/lab": "^7.0.0-beta.16",
"@mui/material": "^7.3.1",
"@testing-library/jest-dom": "^6.8.0",
"@testing-library/react": "^16.3.0",
Expand Down Expand Up @@ -68,7 +67,8 @@
"@svgr/cli": "^8.1.0",
"@vitejs/plugin-react": "^5.0.1",
"prettier": "^3.6.2",
"vite": "^7.1.3"
"vite": "^7.1.3",
"vite-plugin-css-injected-by-js": "^4.0.1"
},
"overrides": {
"nth-check": "$nth-check"
Expand Down
26 changes: 11 additions & 15 deletions search_interface/src/Search/InfiniteHits.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,21 @@ function CustomHit({ hit, urlPrefix, onClick, showLibName }) {
}, [urlPrefix, onClick, hierarchy, _highlightResult]);

return (
<Box
sx={{
wordWrap: 'break-word',
'& mark': {
color: 'inherit',
bgcolor: 'inherit',
fontWeight: 'bolder',
},
}}
>
<Breadcrumbs separator='&rsaquo;' sx={{ wordBreak: 'break-all' }}>
<Box className="search-modal__hit">
<Breadcrumbs className="search-modal__breadcrumbs" separator='&rsaquo;'>
{(showLibName || hierarchyLinks.length === 0) && (
<Link underline='hover' href={urlJoin(urlPrefix, 'libs', library_key)}>
{library_name}
</Link>
)}
{hierarchyLinks}
</Breadcrumbs>
<Snippet style={{ color: theme.palette.text.secondary }} hit={hit} attribute='content' />
<Snippet
classNames={{ root: 'search-modal__snippet' }}
style={{ color: theme.palette.text.secondary }}
hit={hit}
attribute='content'
/>
</Box>
);
}
Expand Down Expand Up @@ -110,10 +106,10 @@ function InfiniteHits({ urlPrefix, setnbHits, onClick, showLibName }) {
}

return (
<Stack spacing={2}>
<Stack className="search-modal__hits-stack" spacing={2}>
{memoizedHits}
<Box textAlign='center'>
<Button disabled={isLastPage} onClick={showMore} sx={{ textTransform: 'none' }}>
<Box className="search-modal__show-more-wrapper" textAlign='center'>
<Button className="search-modal__show-more" disabled={isLastPage} onClick={showMore}>
Show More
</Button>
</Box>
Expand Down
18 changes: 18 additions & 0 deletions search_interface/src/Search/PoweredByAlgoliaLogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading