diff --git a/web/src/components/ui/typography/AppMarkdown/AppMarkdownCommon.tsx b/web/src/components/ui/typography/AppMarkdown/AppMarkdownCommon.tsx index 3806c8251..ecaa7fd03 100644 --- a/web/src/components/ui/typography/AppMarkdown/AppMarkdownCommon.tsx +++ b/web/src/components/ui/typography/AppMarkdown/AppMarkdownCommon.tsx @@ -39,8 +39,7 @@ export const CustomParagraph: React.FC< className={cn( 'text-size-inherit!', showLoader && 'animate-in fade-in transition-none duration-700' - )} - {...rest}> + )}> {children}

); @@ -57,8 +56,7 @@ export const CustomParagraph: React.FC< className={cn( 'text-size-inherit!', showLoader && 'animate-in fade-in transition-none duration-700' - )} - {...rest}> + )}> {children}

); @@ -94,8 +92,7 @@ export const CustomHeading: React.FC< className={cn( headingVariants({ level: stripFormatting ? 'base' : level }), showLoader && 'animate-in fade-in transition-none duration-700' - )} - {...rest}> + )}> {children} ); @@ -192,9 +189,7 @@ export const CustomTable: React.FC< } & ExtraPropsExtra > = ({ children, markdown, showLoader, ...rest }) => { return ( - +
{children}
); @@ -208,9 +203,7 @@ export const CustomSpan: React.FC< } & ExtraPropsExtra > = ({ children, markdown, showLoader, ...rest }) => { return ( - + {children} ); diff --git a/web/src/layouts/ChatLayout/ChatLayoutContext/useSelectedFile/useSelectedFile.ts b/web/src/layouts/ChatLayout/ChatLayoutContext/useSelectedFile/useSelectedFile.ts index e1665a42e..d0a433927 100644 --- a/web/src/layouts/ChatLayout/ChatLayoutContext/useSelectedFile/useSelectedFile.ts +++ b/web/src/layouts/ChatLayout/ChatLayoutContext/useSelectedFile/useSelectedFile.ts @@ -44,6 +44,8 @@ export const useSelectedFile = ({ if (link) onChangePage(link); } + console.log('handleFileCollapse', handleFileCollapse); + if (handleFileCollapse) { animateOpenSplitter('left'); return;