From 983fe31af50e4858a53aa36b6f25d2c01f8173ab Mon Sep 17 00:00:00 2001 From: yangdx Date: Wed, 17 Sep 2025 01:47:40 +0800 Subject: [PATCH] Bump API version and improve tooltip text wrapping in DocumentManager - Update API version to 0224 - Add word-break: break-all to tooltip - Improve pre tag text wrapping - Enhance tooltip readability --- lightrag/api/__init__.py | 2 +- lightrag_webui/src/features/DocumentManager.tsx | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lightrag/api/__init__.py b/lightrag/api/__init__.py index 7b7962a2..efd443df 100644 --- a/lightrag/api/__init__.py +++ b/lightrag/api/__init__.py @@ -1 +1 @@ -__api_version__ = "0223" +__api_version__ = "0224" diff --git a/lightrag_webui/src/features/DocumentManager.tsx b/lightrag_webui/src/features/DocumentManager.tsx index 6994b99c..31a37b13 100644 --- a/lightrag_webui/src/features/DocumentManager.tsx +++ b/lightrag_webui/src/features/DocumentManager.tsx @@ -91,6 +91,7 @@ const pulseStyle = ` z-index: 9999; /* Ensure tooltip appears above all other elements */ max-width: 600px; white-space: normal; + word-break: break-all; border-radius: 0.375rem; padding: 0.5rem 0.75rem; font-size: 0.75rem; /* 12px */ @@ -113,6 +114,11 @@ const pulseStyle = ` color: black; } +.tooltip pre { + white-space: pre-wrap; + word-break: break-all; +} + /* Position tooltip helper class */ .tooltip-helper { position: absolute;