Skip to content
Open
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
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@babel/core": "^7.29.7",
"@babel/runtime": "^7.29.7",
"@base-ui/react": "catalog:docs",
"@docsearch/react": "^4.6.3",
"@docsearch/react": "catalog:docs",
"@emotion/cache": "catalog:docs",
"@emotion/react": "catalog:docs",
"@emotion/server": "catalog:docs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export interface AppSearchProps {

export function AppSearch(props: AppSearchProps) {
useLazyCSS(
'https://cdn.jsdelivr.net/npm/@docsearch/css@4.6.3/dist/style.min.css',
'https://cdn.jsdelivr.net/npm/@docsearch/css@4.7.0/dist/style.min.css',
Comment thread
LukasTy marked this conversation as resolved.
'#app-search',
{ layer: 'docsearch' },
);
Expand Down Expand Up @@ -444,6 +444,7 @@ export function AppSearch(props: AppSearchProps) {
'--docsearch-searchbox-focus-background': 'unset',
'--docsearch-footer-background': 'unset',
'--docsearch-modal-background': (theme.vars || theme).palette.background.paper,
'--docsearch-hit-height': '52px',

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slightly tighter rows than the 56px default. Set through the variable rather than a height on .DocSearch-Hit-Container, so v4.7 can still grow a row to fit wrapped text on small screens (it keeps this as the min-height there).

// Height left for the scrollable area between the search bar and the footer. v4
// dropped the search box from its own budget, which makes the modal overshoot
// --docsearch-modal-height; subtract it again so the modal stays 600px.
Expand Down Expand Up @@ -612,11 +613,6 @@ export function AppSearch(props: AppSearchProps) {
marginTop: theme.spacing(1),
},
},
// The no-results title inherits a too-small line-height, so its long query text
// overlaps instead of wrapping; restore a readable line-height (matches prod).
'& .DocSearch-NoResults .DocSearch-Title': {
lineHeight: 1.5,
},
// The v4 screen icon (no-results / empty state) hardcodes an inline stroke="#5a5e9a"
// that no variable can reach; recolor it to the MUI muted grey.
'& .DocSearch-Screen-Icon svg': {
Expand Down Expand Up @@ -646,9 +642,6 @@ export function AppSearch(props: AppSearchProps) {
'&:not(:first-of-type)': {
marginTop: -1,
},
'& .DocSearch-Hit-Container': {
height: '52px',
},
},
'& .DocSearch-Hit a': {
padding: theme.spacing(0.25, 0),
Expand Down
32 changes: 16 additions & 16 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ catalogs:
docs:
stylis: '4.2.0'
'@base-ui/react': '^1.6.0'
'@docsearch/react': '^4.6.3'
'@docsearch/react': '^4.7.0'
'@emotion/cache': '^11.14.0'
'@emotion/react': '^11.14.0'
'@emotion/server': '^11.11.0'
Expand Down
Loading