This commit is contained in:
Brent O'Neill 2025-09-29 11:17:41 -06:00
parent 340bef2175
commit 677a01d634

View file

@ -75,7 +75,7 @@ function ChunksPageContent() {
}, [queryInputText, chunks]);
const handleCopy = useCallback((text: string, index: number) => {
// Trime whitespace and remove new lines/tabs for cleaner copy
// Trim whitespace and remove new lines/tabs for cleaner copy
navigator.clipboard.writeText(text.trim().replace(/[\n\r\t]/gm, ""));
setActiveCopiedChunkIndex(index);
setTimeout(() => setActiveCopiedChunkIndex(null), 30 * 1000); // 30 seconds