Skip to content

Commit c56ebe7

Browse files
committed
debug: show search terms
1 parent e699f32 commit c56ebe7

File tree

1 file changed

+3
-3
lines changed
  • clients/search-component/src/TrieveModal/Search

1 file changed

+3
-3
lines changed

clients/search-component/src/TrieveModal/Search/PdfItem.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { FileDTO } from "trieve-ts-sdk";
55
import { useModalState } from "../../utils/hooks/modal-context";
66
import { cached } from "../../utils/cache";
77
import { PdfSpotlight } from "react-pdf-spotlight";
8-
import { file } from "bun";
98

109
type Props = {
1110
item: PdfChunk;
@@ -69,19 +68,20 @@ export const PdfItem = (props: Props) => {
6968
}, []);
7069

7170
return (
72-
<div>
71+
<div className="flex gap-2 bg-red-500">
7372
{presigned && (
7473
<div className="max-w-[400px]">
7574
<PdfSpotlight
7675
padding={{
7776
horizontal: 100,
7877
}}
7978
page={props.item.chunk.metadata.page}
80-
searchFor={toHighlight}
79+
searchFor={toHighlight.toLowerCase()}
8180
url={presigned}
8281
></PdfSpotlight>
8382
</div>
8483
)}
84+
<div>{toHighlight.toLowerCase()}</div>
8585
</div>
8686
);
8787
};

0 commit comments

Comments
 (0)