mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-09 03:58:51 +01:00
📶 fix: Mobile Stylings (#2639)
* chore: remove unused mobile nav * fix: mobile nav fix for 'more' and 'archive' buttons div * refactor(useTextarea): rewrite handleKeyUp for backwards compatibility refactor(useTextarea): rewrite handleKeyUp for backwards compatibility * experimental: add processing delay to azure streams for better performance/UX * experiemental: adjust gpt-3 azureDelay * fix: perplexity titles
This commit is contained in:
parent
b6d6343f54
commit
3c5fa40435
7 changed files with 49 additions and 105 deletions
|
|
@ -138,6 +138,7 @@ export default function Conversation({ conversation, retainView, toggleNav, isLa
|
|||
onRename={onRename}
|
||||
renameHandler={renameHandler}
|
||||
appendLabel={true}
|
||||
className="group m-1.5 flex w-full cursor-pointer items-center gap-2 rounded p-2.5 text-sm hover:bg-gray-200 focus-visible:bg-gray-200 focus-visible:outline-0 radix-disabled:pointer-events-none radix-disabled:opacity-50 dark:hover:bg-gray-600 dark:focus-visible:bg-gray-600"
|
||||
/>
|
||||
<DeleteButton
|
||||
conversationId={conversationId}
|
||||
|
|
@ -152,7 +153,7 @@ export default function Conversation({ conversation, retainView, toggleNav, isLa
|
|||
conversationId={conversationId}
|
||||
retainView={retainView}
|
||||
shouldArchive={true}
|
||||
icon={<ArchiveIcon className="w-full hover:text-gray-400" />}
|
||||
icon={<ArchiveIcon className="hover:text-gray-400" />}
|
||||
/>
|
||||
</HoverToggle>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ interface RenameButtonProps {
|
|||
renameHandler: (e: MouseEvent<HTMLButtonElement>) => void;
|
||||
onRename: (e: MouseEvent<HTMLButtonElement>) => void;
|
||||
appendLabel?: boolean;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export default function RenameButton({
|
||||
|
|
@ -14,15 +15,13 @@ export default function RenameButton({
|
|||
renameHandler,
|
||||
onRename,
|
||||
appendLabel = false,
|
||||
className = '',
|
||||
}: RenameButtonProps): ReactElement {
|
||||
const localize = useLocalize();
|
||||
const handler = renaming ? onRename : renameHandler;
|
||||
|
||||
return (
|
||||
<button
|
||||
className="group m-1.5 flex w-full cursor-pointer items-center gap-2 rounded p-2.5 text-sm hover:bg-gray-200 focus-visible:bg-gray-200 focus-visible:outline-0 radix-disabled:pointer-events-none radix-disabled:opacity-50 dark:hover:bg-gray-600 dark:focus-visible:bg-gray-600"
|
||||
onClick={handler}
|
||||
>
|
||||
<button className={className} onClick={handler}>
|
||||
{renaming ? (
|
||||
<CheckMark />
|
||||
) : appendLabel ? (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue