From 1e80be77a2b2cc7ea047045420fe5e7db2b1fbf4 Mon Sep 17 00:00:00 2001 From: Nie WeiYang Date: Mon, 11 May 2026 16:17:48 +0800 Subject: [PATCH] fix(web): fix incomplete Docx preview in citation reference (#14122) This PR fixes a UI issue where the .docx document preview was displayed incompletely when clicking on a citation/reference link during a knowledge base conversation. ### What problem does this PR solve? The Issue: In the chat interface, when a user clicks the source citation at the end of an answer, the DocPreviewer opens. However, for .docx files, if the content exceeded the window height, it was truncated and unscrollable, preventing users from reading the full referenced text. Changes: web/src/components/document-preview/doc-preview.tsx: Added the overflow-auto Tailwind class to the DocPreviewer root container to ensure scrollbars appear automatically when content overflows. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) Co-authored-by: nie.weiyang --- web/src/components/document-preview/doc-preview.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/document-preview/doc-preview.tsx b/web/src/components/document-preview/doc-preview.tsx index 147b457c6..67d956d91 100644 --- a/web/src/components/document-preview/doc-preview.tsx +++ b/web/src/components/document-preview/doc-preview.tsx @@ -118,7 +118,7 @@ export const DocPreviewer: React.FC = ({ return (