fix: enable smooth rendering in MarkdownText component

- Updated the MarkdownTextPrimitive component to enable smooth rendering by default.
- Adjusted the props to streamline the rendering process for improved user experience.
This commit is contained in:
Anish Sarkar 2026-06-18 23:56:58 +05:30
parent 6e970be220
commit bb664a1f32
2 changed files with 3 additions and 3 deletions

View file

@ -27,8 +27,8 @@ export interface ChatViewportProps {
export const ChatViewport: FC<ChatViewportProps> = ({ children, footer }) => (
<ThreadPrimitive.Viewport
turnAnchor="top"
autoScroll={false}
scrollToBottomOnRunStart={false}
autoScroll
scrollToBottomOnRunStart
scrollToBottomOnInitialize
scrollToBottomOnThreadSwitch
className="aui-thread-viewport relative flex flex-1 min-h-0 flex-col overflow-y-auto px-4 scroll-smooth"

View file

@ -110,7 +110,7 @@ const MarkdownTextImpl = () => {
return (
<CitationUrlMapContext.Provider value={urlMapRef}>
<MarkdownTextPrimitive
smooth={false}
smooth
remarkPlugins={[remarkGfm, [remarkMath, { singleDollarTextMath: false }]]}
rehypePlugins={[rehypeKatex]}
className="aui-md"