mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-26 03:48:49 +02:00
Chat Touchups (#3775)
This commit is contained in:
@@ -2599,6 +2599,7 @@ export function ChatPage({
|
|||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
onSubmit({
|
onSubmit({
|
||||||
messageIdToResend:
|
messageIdToResend:
|
||||||
previousMessage.messageId,
|
previousMessage.messageId,
|
||||||
|
@@ -147,24 +147,6 @@ export const DocumentResults = forwardRef<HTMLDivElement, DocumentResultsProps>(
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
|
||||||
className={`sticky bottom-4 w-full left-0 flex justify-center transition-opacity duration-300 ${
|
|
||||||
hasSelectedDocuments
|
|
||||||
? "opacity-100"
|
|
||||||
: "opacity-0 pointer-events-none"
|
|
||||||
}`}
|
|
||||||
>
|
|
||||||
<button
|
|
||||||
className="text-sm font-medium py-2 px-4 rounded-full transition-colors bg-neutral-900 text-white"
|
|
||||||
onClick={clearSelectedDocuments}
|
|
||||||
>
|
|
||||||
{`Remove ${
|
|
||||||
delayedSelectedDocumentCount > 0
|
|
||||||
? delayedSelectedDocumentCount
|
|
||||||
: ""
|
|
||||||
} Source${delayedSelectedDocumentCount > 1 ? "s" : ""}`}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
@@ -198,7 +198,7 @@ export function SearchSummary({
|
|||||||
) : null;
|
) : null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex items-center">
|
<div className="flex group w-fit items-center">
|
||||||
{isEditing ? (
|
{isEditing ? (
|
||||||
editInput
|
editInput
|
||||||
) : (
|
) : (
|
||||||
@@ -225,7 +225,7 @@ export function SearchSummary({
|
|||||||
<Tooltip>
|
<Tooltip>
|
||||||
<TooltipTrigger asChild>
|
<TooltipTrigger asChild>
|
||||||
<button
|
<button
|
||||||
className="ml-2 -my-2 mobile:hidden hover:bg-hover p-1 rounded flex-shrink-0"
|
className="ml-2 -my-2 mobile:hidden hover:bg-hover p-1 rounded flex-shrink-0 group-hover:opacity-100 opacity-0"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setIsEditing(true);
|
setIsEditing(true);
|
||||||
}}
|
}}
|
||||||
|
@@ -445,7 +445,7 @@ export function PagesTab({
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{isHistoryEmpty && (!folders || folders.length === 0) && (
|
{isHistoryEmpty && (!folders || folders.length === 0) && (
|
||||||
<p className="text-sm mt-2 w-[250px]">
|
<p className="text-sm max-w-full mt-2 w-[250px]">
|
||||||
Try sending a message! Your chat history will appear here.
|
Try sending a message! Your chat history will appear here.
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
|
Reference in New Issue
Block a user