@@ -659,7 +659,7 @@ const MeilisearchSearchBar: React.FC<MeilisearchSearchBarProps> = ({
659659 onClick = { handleBlur }
660660 />
661661 ) }
662- < div ref = { searchContainerRef } style = { { position : 'relative' , width : '100%' , zIndex : 1000 , pointerEvents : 'auto' } } >
662+ < div ref = { searchContainerRef } style = { { position : 'relative' , width : '100%' , zIndex : 1000 } } >
663663 < div
664664 onClick = { handleFocus }
665665 style = { {
@@ -674,8 +674,7 @@ const MeilisearchSearchBar: React.FC<MeilisearchSearchBarProps> = ({
674674 minWidth : ( isFocused || aiResponse || aiLoading ) ? '450px' : '250px' ,
675675 width : ( isFocused || aiResponse || aiLoading ) ? '100%' : 'auto' ,
676676 maxWidth : ( isFocused || aiResponse || aiLoading ) ? '600px' : '300px' ,
677- boxShadow : ( isFocused || aiResponse || aiLoading ) ? '0 8px 25px rgba(0, 212, 170, 0.2)' : '0 2px 8px rgba(0,0,0,0.08)' ,
678- pointerEvents : 'auto'
677+ boxShadow : ( isFocused || aiResponse || aiLoading ) ? '0 8px 25px rgba(0, 212, 170, 0.2)' : '0 2px 8px rgba(0,0,0,0.08)'
679678 } }
680679 >
681680 < input
@@ -695,9 +694,7 @@ const MeilisearchSearchBar: React.FC<MeilisearchSearchBarProps> = ({
695694 background : 'transparent' ,
696695 color : '#111827' ,
697696 fontWeight : '500' ,
698- transition : 'font-size 0.2s ease' ,
699- pointerEvents : 'auto' ,
700- cursor : 'text'
697+ transition : 'font-size 0.2s ease'
701698 } }
702699 />
703700 { isLoading && < span style = { { fontSize : '12px' , color : '#00D4AA' , marginLeft : '8px' , fontWeight : '500' } } > Searching...</ span > }
@@ -1144,30 +1141,29 @@ const getMeilisearchConfig = (): SearchConfig => {
11441141 } ;
11451142 }
11461143
1147- const isProduction = window . location . hostname === 'semgrep.dev' ;
11481144 const isNetlifyPreview = window . location . hostname . includes ( 'deploy-preview' ) ;
11491145 const isTestingBranch = window . location . hostname . includes ( 'meilisearch-testing' ) || isNetlifyPreview ;
11501146 const isDevelopment = window . location . hostname === 'localhost' || window . location . hostname === '127.0.0.1' ;
11511147
1152- if ( isProduction || isNetlifyPreview || isTestingBranch || isDevelopment ) {
1148+ if ( isNetlifyPreview || isTestingBranch || isDevelopment ) {
11531149 const isNetlify = window . location . hostname . includes ( 'netlify.app' ) || isNetlifyPreview ;
11541150
1155- return {
1156- enabled : true ,
1157- hostUrl : isNetlify ?
1151+ return {
1152+ enabled : true ,
1153+ hostUrl : isNetlify ?
11581154 `${ window . location . origin } /.netlify/functions/meilisearch` :
11591155 "https://ms-3ade175771ef-34593.sfo.meilisearch.io" ,
11601156 apiKey : "" ,
11611157 indexUid : "semgrep_docs" ,
1162- placeholder : "Search docs..."
1163- } ;
1158+ placeholder : "Search docs..."
1159+ } ;
11641160 }
11651161
1166- return {
1167- enabled : false ,
1168- hostUrl : "" ,
1169- apiKey : "" ,
1170- indexUid : "" ,
1162+ return {
1163+ enabled : false ,
1164+ hostUrl : "" ,
1165+ apiKey : "" ,
1166+ indexUid : "" ,
11711167 placeholder : "Search docs..."
11721168 } ;
11731169} ;
0 commit comments