Fixes to search modal (#3577)

This commit is contained in:
Zeno Kapitein
2025-08-20 12:50:58 +02:00
committed by GitHub
parent 011aa931cf
commit ffa866cb99
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"gitbook": patch
---
Small fixes to search modal
@@ -150,7 +150,7 @@ export function SearchContainer(props: SearchContainerProps) {
<Popover
content={
// Only show content if there's a query or Ask is enabled
state?.query || withSearchAI ? (
state?.query || withAI ? (
<React.Suspense fallback={null}>
{isMultiVariants && !showAsk ? (
<SearchScopeToggle spaceTitle={spaceTitle} />
@@ -170,7 +170,7 @@ export function SearchContainer(props: SearchContainerProps) {
rootProps={{
open: state?.open ?? false,
onOpenChange: (open) => {
setSearchState((prev) => (prev ? { ...prev, open } : null));
open ? onOpen() : onClose();
},
modal: isMobile,
}}