💬 fix: Temporary Chat PR's broken components and improved UI (#5705)

* 💬 fix: Temporary Chat PR's broken components and improved UI

* 💬 fix: bring back hover effect on AudioRecorder button

* style: adjust position of Mention component popover

* refactor: PromptsCommand typing and style position

* refactor: virtualize mention UI

---------

Co-authored-by: Danny Avila <danny@librechat.ai>
This commit is contained in:
Marco Beretta 2025-02-07 02:15:38 +01:00 committed by GitHub
parent 63afb317c6
commit 70e410f38b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 196 additions and 86 deletions

View file

@ -13,7 +13,6 @@ export default function AudioRecorder({
methods,
textAreaRef,
isSubmitting,
isTemporary = false,
}: {
isRTL: boolean;
disabled: boolean;
@ -21,7 +20,6 @@ export default function AudioRecorder({
methods: ReturnType<typeof useChatFormContext>;
textAreaRef: React.RefObject<HTMLTextAreaElement>;
isSubmitting: boolean;
isTemporary?: boolean;
}) {
const { setValue, reset } = methods;
const localize = useLocalize();
@ -78,11 +76,7 @@ export default function AudioRecorder({
if (isLoading === true) {
return <Spinner className="stroke-gray-700 dark:stroke-gray-300" />;
}
return (
<ListeningIcon
className={cn(isTemporary ? 'stroke-white' : 'stroke-gray-700 dark:stroke-gray-300')}
/>
);
return <ListeningIcon className="stroke-gray-700 dark:stroke-gray-300" />;
};
return (