File tree 1 file changed +3
-3
lines changed
clients/search-component/src/TrieveModal/Search
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import { FileDTO } from "trieve-ts-sdk";
5
5
import { useModalState } from "../../utils/hooks/modal-context" ;
6
6
import { cached } from "../../utils/cache" ;
7
7
import { PdfSpotlight } from "react-pdf-spotlight" ;
8
- import { file } from "bun" ;
9
8
10
9
type Props = {
11
10
item : PdfChunk ;
@@ -69,19 +68,20 @@ export const PdfItem = (props: Props) => {
69
68
} , [ ] ) ;
70
69
71
70
return (
72
- < div >
71
+ < div className = "flex gap-2 bg-red-500" >
73
72
{ presigned && (
74
73
< div className = "max-w-[400px]" >
75
74
< PdfSpotlight
76
75
padding = { {
77
76
horizontal : 100 ,
78
77
} }
79
78
page = { props . item . chunk . metadata . page }
80
- searchFor = { toHighlight }
79
+ searchFor = { toHighlight . toLowerCase ( ) }
81
80
url = { presigned }
82
81
> </ PdfSpotlight >
83
82
</ div >
84
83
) }
84
+ < div > { toHighlight . toLowerCase ( ) } </ div >
85
85
</ div >
86
86
) ;
87
87
} ;
You can’t perform that action at this time.
0 commit comments