diff --git a/lightrag_webui/src/features/RetrievalTesting.tsx b/lightrag_webui/src/features/RetrievalTesting.tsx index bde4414b..927aa16c 100644 --- a/lightrag_webui/src/features/RetrievalTesting.tsx +++ b/lightrag_webui/src/features/RetrievalTesting.tsx @@ -28,7 +28,7 @@ export default function RetrievalTesting() { // Calculate distance to bottom const { scrollTop, scrollHeight, clientHeight } = container const distanceToBottom = scrollHeight - scrollTop - clientHeight - + // Consider near bottom if less than 100px from bottom return distanceToBottom < 100 }, []) diff --git a/lightrag_webui/vite.config.ts b/lightrag_webui/vite.config.ts index ff8e6c31..f908be2d 100644 --- a/lightrag_webui/vite.config.ts +++ b/lightrag_webui/vite.config.ts @@ -33,7 +33,7 @@ export default defineConfig({ 'feature-graph': ['./src/features/GraphViewer'], 'feature-documents': ['./src/features/DocumentManager'], 'feature-retrieval': ['./src/features/RetrievalTesting'], - + // Mermaid-related modules 'mermaid-vendor': ['mermaid'],