This commit is contained in:
Nate Kelley 2025-04-18 15:49:47 -06:00
parent e423f1305a
commit e9ea75398e
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
2 changed files with 7 additions and 12 deletions

View File

@ -39,8 +39,7 @@ export const CustomParagraph: React.FC<
className={cn( className={cn(
'text-size-inherit!', 'text-size-inherit!',
showLoader && 'animate-in fade-in transition-none duration-700' showLoader && 'animate-in fade-in transition-none duration-700'
)} )}>
{...rest}>
{children} {children}
</p> </p>
); );
@ -57,8 +56,7 @@ export const CustomParagraph: React.FC<
className={cn( className={cn(
'text-size-inherit!', 'text-size-inherit!',
showLoader && 'animate-in fade-in transition-none duration-700' showLoader && 'animate-in fade-in transition-none duration-700'
)} )}>
{...rest}>
{children} {children}
</p> </p>
); );
@ -94,8 +92,7 @@ export const CustomHeading: React.FC<
className={cn( className={cn(
headingVariants({ level: stripFormatting ? 'base' : level }), headingVariants({ level: stripFormatting ? 'base' : level }),
showLoader && 'animate-in fade-in transition-none duration-700' showLoader && 'animate-in fade-in transition-none duration-700'
)} )}>
{...rest}>
{children} {children}
</HeadingTag> </HeadingTag>
); );
@ -192,9 +189,7 @@ export const CustomTable: React.FC<
} & ExtraPropsExtra } & ExtraPropsExtra
> = ({ children, markdown, showLoader, ...rest }) => { > = ({ children, markdown, showLoader, ...rest }) => {
return ( return (
<table <table className={cn('', showLoader && 'animate-in fade-in transition-none duration-700')}>
className={cn('', showLoader && 'animate-in fade-in transition-none duration-700')}
{...rest}>
{children} {children}
</table> </table>
); );
@ -208,9 +203,7 @@ export const CustomSpan: React.FC<
} & ExtraPropsExtra } & ExtraPropsExtra
> = ({ children, markdown, showLoader, ...rest }) => { > = ({ children, markdown, showLoader, ...rest }) => {
return ( return (
<span <span className={cn('', showLoader && 'animate-in fade-in transition-none duration-700')}>
className={cn('', showLoader && 'animate-in fade-in transition-none duration-700')}
{...rest}>
{children} {children}
</span> </span>
); );

View File

@ -44,6 +44,8 @@ export const useSelectedFile = ({
if (link) onChangePage(link); if (link) onChangePage(link);
} }
console.log('handleFileCollapse', handleFileCollapse);
if (handleFileCollapse) { if (handleFileCollapse) {
animateOpenSplitter('left'); animateOpenSplitter('left');
return; return;