Chat Touchups (#3775)

This commit is contained in:
pablonyx 2025-01-27 12:30:43 -08:00 committed by GitHub
parent fa78f50fe3
commit e625884702
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 21 deletions

View File

@ -2599,6 +2599,7 @@ export function ChatPage({
});
return;
}
onSubmit({
messageIdToResend:
previousMessage.messageId,

View File

@ -147,24 +147,6 @@ export const DocumentResults = forwardRef<HTMLDivElement, DocumentResultsProps>(
)}
</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>
</>

View File

@ -198,7 +198,7 @@ export function SearchSummary({
) : null;
return (
<div className="flex items-center">
<div className="flex group w-fit items-center">
{isEditing ? (
editInput
) : (
@ -225,7 +225,7 @@ export function SearchSummary({
<Tooltip>
<TooltipTrigger asChild>
<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={() => {
setIsEditing(true);
}}

View File

@ -445,7 +445,7 @@ export function PagesTab({
)}
{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.
</p>
)}