mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 01:10:14 +01:00
fix: Allow Mobile Scroll During Message Stream (#984)
* fix(Icon/types): pick types from TMessage and TConversation * refactor: make abortScroll a global recoil state and change props/types for useScrollToRef * refactor(Message): invoke abort setter onTouchMove and onWheel, refactor(Messages): remove redundancy, reset abortScroll when scroll button is clicked
This commit is contained in:
parent
5d4b168df5
commit
7c0379ba51
7 changed files with 55 additions and 50 deletions
|
|
@ -19,7 +19,7 @@ const Icon: React.FC<IconProps> = (props) => {
|
|||
width: size,
|
||||
height: size,
|
||||
}}
|
||||
className={`relative flex items-center justify-center ${props.className || ''}`}
|
||||
className={`relative flex items-center justify-center ${props.className ?? ''}`}
|
||||
>
|
||||
<img
|
||||
className="rounded-sm"
|
||||
|
|
@ -73,7 +73,7 @@ const Icon: React.FC<IconProps> = (props) => {
|
|||
default: { icon: <GPTIcon size={size * 0.7} />, bg: 'grey', name: 'UNKNOWN' },
|
||||
};
|
||||
|
||||
const { icon, bg, name } = endpointIcons[endpoint] || endpointIcons.default;
|
||||
const { icon, bg, name } = endpointIcons[endpoint ?? ''] ?? endpointIcons.default;
|
||||
|
||||
return (
|
||||
<div
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue