mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-08 11:38:51 +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
|
|
@ -179,16 +179,11 @@ export type TAuthConfig = {
|
|||
loginRedirect: string;
|
||||
};
|
||||
|
||||
export type IconProps = {
|
||||
size?: number;
|
||||
isCreatedByUser?: boolean;
|
||||
button?: boolean;
|
||||
model?: string;
|
||||
message?: boolean;
|
||||
className?: string;
|
||||
endpoint?: string | null;
|
||||
error?: boolean;
|
||||
chatGptLabel?: string;
|
||||
modelLabel?: string;
|
||||
jailbreak?: boolean;
|
||||
};
|
||||
export type IconProps = Pick<TMessage, 'isCreatedByUser' | 'model' | 'error'> &
|
||||
Pick<TConversation, 'chatGptLabel' | 'modelLabel' | 'jailbreak'> & {
|
||||
size?: number;
|
||||
button?: boolean;
|
||||
message?: boolean;
|
||||
className?: string;
|
||||
endpoint?: string | null;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue