From 1b63149a1146a058bf721f191c8592eccf059e40 Mon Sep 17 00:00:00 2001 From: yangdx Date: Tue, 22 Apr 2025 18:34:30 +0800 Subject: [PATCH] Fix linting --- lightrag_webui/src/features/RetrievalTesting.tsx | 2 +- lightrag_webui/vite.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'],