mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-07 19:38:19 +02:00
revert to previous doc select logic (#3217)
* revert to previous doc select logic * k
This commit is contained in:
parent
2381c8d498
commit
9dc23bf3e7
@ -2461,7 +2461,6 @@ export function ChatPage({
|
||||
textAreaRef={textAreaRef}
|
||||
chatSessionId={chatSessionIdRef.current!}
|
||||
/>
|
||||
|
||||
{enterpriseSettings &&
|
||||
enterpriseSettings.custom_lower_disclaimer_content && (
|
||||
<div className="mobile:hidden mt-4 flex items-center justify-center relative w-[95%] mx-auto">
|
||||
@ -2474,7 +2473,6 @@ export function ChatPage({
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{enterpriseSettings &&
|
||||
enterpriseSettings.use_custom_logotype && (
|
||||
<div className="hidden lg:block absolute right-0 bottom-0">
|
||||
|
@ -75,7 +75,8 @@ export const DocumentSidebar = forwardRef<HTMLDivElement, DocumentSidebarProps>(
|
||||
<div className="pb-6 flex-initial overflow-y-hidden flex flex-col h-screen">
|
||||
{popup}
|
||||
<div className="pl-3 mx-2 pr-6 mt-3 flex text-text-800 flex-col text-2xl text-emphasis flex font-semibold">
|
||||
{dedupedDocuments.length} Documents
|
||||
{dedupedDocuments.length} Document
|
||||
{dedupedDocuments.length > 1 ? "s" : ""}
|
||||
<p className="text-sm font-semibold flex flex-wrap gap-x-2 text-text-600 mt-1">
|
||||
Select to add to continuous context
|
||||
<a
|
||||
|
@ -482,9 +482,10 @@ export const AIMessage = ({
|
||||
))}
|
||||
<div
|
||||
onClick={() => {
|
||||
if (toggleDocumentSelection) {
|
||||
toggleDocumentSelection();
|
||||
if (messageId) {
|
||||
onMessageSelection?.(messageId);
|
||||
}
|
||||
toggleDocumentSelection?.();
|
||||
}}
|
||||
key={-1}
|
||||
className="cursor-pointer w-[200px] rounded-lg flex-none transition-all duration-500 hover:bg-background-125 bg-text-100 px-4 py-2 border-b"
|
||||
|
Loading…
x
Reference in New Issue
Block a user