mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 13:19:16 +00:00
Label pages when extract text from pdf, docs content. Fix scroll area in doc preview.
This commit is contained in:
@@ -262,6 +262,11 @@ export const ChatInputArea = forwardRef<HTMLTextAreaElement, ChatInputProps>((pr
|
||||
|
||||
return await response.json();
|
||||
} catch (error) {
|
||||
setError(
|
||||
"Error converting files. " +
|
||||
error +
|
||||
". Please try again, or contact team@khoj.dev if the issue persists.",
|
||||
);
|
||||
console.error("Error converting files:", error);
|
||||
return [];
|
||||
}
|
||||
|
||||
@@ -728,7 +728,9 @@ const ChatMessage = forwardRef<HTMLDivElement, ChatMessageProps>((props, ref) =>
|
||||
<DialogTitle>{file.name}</DialogTitle>
|
||||
</DialogHeader>
|
||||
<DialogDescription>
|
||||
<ScrollArea className="max-h-96">{file.content}</ScrollArea>
|
||||
<ScrollArea className="h-72 w-full rounded-md">
|
||||
{file.content}
|
||||
</ScrollArea>
|
||||
</DialogDescription>
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
|
||||
Reference in New Issue
Block a user