mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-20 01:06:11 +01:00
✨ feat: Enhance form submission for touch screens (#7198)
* ✨ feat: Enhance form submission for touch screens
* chore: add comment
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* chore: add comment
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* chore: linting in AnthropicClient
* chore: Add anthropic model outputs for Claude 3.7
* refactor: Simplify touch-screen detection in message submission
* fix: Correct button rendering order for chat collapse/expand icons
* Revert "refactor: Simplify touch-screen detection in message submission"
This reverts commit 8638442a4c.
* refactor: Improve touchscreen detection for focus handling in ChatForm and useFocusChatEffect
* chore: EditMessage linting
* refactor: Reorder dropdown items in ExportAndShareMenu
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Danny Avila <danny@librechat.ai>
This commit is contained in:
parent
6e663b2480
commit
fc6e14efe2
7 changed files with 35 additions and 24 deletions
|
|
@ -44,15 +44,6 @@ export default function ExportAndShareMenu({
|
|||
};
|
||||
|
||||
const dropdownItems: t.MenuItemProps[] = [
|
||||
{
|
||||
label: localize('com_endpoint_export'),
|
||||
onClick: exportHandler,
|
||||
icon: <Upload className="icon-md mr-2 text-text-secondary" />,
|
||||
/** NOTE: THE FOLLOWING PROPS ARE REQUIRED FOR MENU ITEMS THAT OPEN DIALOGS */
|
||||
hideOnClick: false,
|
||||
ref: exportButtonRef,
|
||||
render: (props) => <button {...props} />,
|
||||
},
|
||||
{
|
||||
label: localize('com_ui_share'),
|
||||
onClick: shareHandler,
|
||||
|
|
@ -63,6 +54,15 @@ export default function ExportAndShareMenu({
|
|||
ref: shareButtonRef,
|
||||
render: (props) => <button {...props} />,
|
||||
},
|
||||
{
|
||||
label: localize('com_endpoint_export'),
|
||||
onClick: exportHandler,
|
||||
icon: <Upload className="icon-md mr-2 text-text-secondary" />,
|
||||
/** NOTE: THE FOLLOWING PROPS ARE REQUIRED FOR MENU ITEMS THAT OPEN DIALOGS */
|
||||
hideOnClick: false,
|
||||
ref: exportButtonRef,
|
||||
render: (props) => <button {...props} />,
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
|
|
@ -81,7 +81,7 @@ export default function ExportAndShareMenu({
|
|||
aria-label="Export options"
|
||||
className="inline-flex size-10 flex-shrink-0 items-center justify-center rounded-xl border border-border-light bg-transparent text-text-primary transition-all ease-in-out hover:bg-surface-tertiary disabled:pointer-events-none disabled:opacity-50 radix-state-open:bg-surface-tertiary"
|
||||
>
|
||||
<Upload
|
||||
<Share2
|
||||
className="icon-md text-text-secondary"
|
||||
aria-hidden="true"
|
||||
focusable="false"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue